Wiki

Imprimir Propiedades
Cantiga_Domain_Classes

Cantiga Project

  

Second step: Adding domain classes

 

Firstly, we must to define the domain classes. In this case, we have the following:

 

Person: This class represents a person that can be a compositor, producer, musician, teacher...

Composition: This class represents a musical composition, it is associated with a composer (Person) and could be part of another composition.

MusicalContent: This class represents a generic musical content, it is extended by other classes.

Rights: Rights that are associated with a musical content.

Settings: Class that represents some aspects about a musical content

Editable: Class associated with a musical content that describes its properties in the content library.

Classes that extends MusicalContent:

Conference: It represents a Conference about music topics.

Document: Represents a music document.

MasterClass: Represents a lesson about a specific music topic.

MusicPerformance: Represents a music performance.

 

Into the java package “org.romulus.cantiga.domain”, we have created the previous classes with the POJO approach. Each class has its attributes and its getters and setters.

An example:

 

public class Rights {

private boolean protect;

private String licenseType;

private String owner;

private String contributorOfWork;

private boolean endOfRights;

private Date dateOfEnd;

public boolean isProtect() {

return protect;

}

public void setProtect(boolean protect) {

this.protect = protect;

}

public String getLicenseType() {

return licenseType;

}

public void setLicenseType(String licenseType) {

this.licenseType = licenseType;

}

public String getOwner() {

return owner;

}

public void setOwner(String owner) {

this.owner = owner;

}

public String getContributorOfWork() {

return contributorOfWork;

}

public void setContributorOfWork(String contributorOfWork) {

this.contributorOfWork = contributorOfWork;

}

public boolean isEndOfRights() {

return endOfRights;

}

public void setEndOfRights(boolean endOfRights) {

this.endOfRights = endOfRights;

}

public Date getDateOfEnd() {

return dateOfEnd;

}

public void setDateOfEnd(Date dateOfEnd) {

this.dateOfEnd = dateOfEnd;

}

}
 

Last Update: 2008-08-11

 

 

<< Prev Cantiga Next>>
1203 Accesos, 0 Ficheros adjuntos 0 Ficheros adjuntos

  • Comentarios