|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnan.model.License
A representation of a License agreement.
Field Summary | |
static java.lang.String |
XML_ACCEPTED
XML tag for the acceptance property. |
static java.lang.String |
XML_DATE
XML tag for the date property. |
static java.lang.String |
XML_NAME
XML tag for the name property. |
static java.lang.String |
XML_TAG
XML tag used for serialization. |
Constructor Summary | |
protected |
License()
Creates a new License object. |
|
License(java.lang.String name,
boolean accepted,
java.util.Date date)
Creates a new License object. |
Method Summary | |
java.util.Date |
getDate()
Gets the date of this license agreement. |
java.lang.String |
getName()
Gets the name of this License. |
void |
setAccepted(boolean accepted)
Sets if this License has been accepted or not. |
void |
setDate(java.util.Date date)
Sets the date of this license agreement. |
void |
setName(java.lang.String name)
Sets the name of this License. |
java.lang.String |
toString()
Returns a String representation of this license. |
org.dom4j.Document |
toXML()
Converts an object into an XML Document. |
void |
transpose(java.lang.Object object)
Transposes (copies over) the values of another object of the same type onto this one. |
boolean |
wasAccepted()
Asks if this License has been accepted or not. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String XML_TAG
public static final java.lang.String XML_NAME
public static final java.lang.String XML_ACCEPTED
public static final java.lang.String XML_DATE
Constructor Detail |
public License(java.lang.String name, boolean accepted, java.util.Date date)
name
- The name of the license.accepted
- Whether the license has been accepted or not.date
- The date of the agreement.protected License()
Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name.public boolean wasAccepted()
public void setAccepted(boolean accepted)
accepted
- true if the License is accepted; false otherwise.public java.util.Date getDate()
public void setDate(java.util.Date date)
date
- The date.public org.dom4j.Document toXML()
toXML
in interface XMLSerializable
public void transpose(java.lang.Object object)
transpose
in interface Transposer
object
- The object to transpose over this one.public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |