public class RMProperty
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_TYPE_BINARY |
static java.lang.String |
PROPERTY_TYPE_BOOLEAN |
static java.lang.String |
PROPERTY_TYPE_DATE |
static java.lang.String |
PROPERTY_TYPE_LIST |
static java.lang.String |
PROPERTY_TYPE_MAP |
static java.lang.String |
PROPERTY_TYPE_NUMBER |
static java.lang.String |
PROPERTY_TYPE_STRING |
Constructor and Description |
---|
RMProperty()
Creates an uninitialized property.
|
RMProperty(java.lang.String aName,
java.lang.String aType,
java.lang.String aSubtype,
boolean isPrimary,
boolean isPrivate)
Creates a property with the given name and type and subtype.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
convertToType(java.lang.String aValue)
Converts the given string to the properties type.
|
boolean |
equals(java.lang.Object anObj)
Standard equals implementation.
|
java.lang.Object |
fromXML(RXArchiver anArchiver,
RXElement anElement)
XML unarchival.
|
java.lang.String |
getName()
Returns the name of this property.
|
int |
getNextUniqueId()
Returns a unique id issued by this property.
|
java.lang.String |
getSubtype()
Returns the subtype of this property.
|
java.lang.Class |
getSubtypeClass()
Returns the subtype class.
|
java.lang.String |
getType()
Returns the type of this property.
|
boolean |
isAttribute()
Returns whether this property is a simple attribute.
|
boolean |
isPrimary()
Returns whether this property is a primary key.
|
boolean |
isPrivate()
Returns whether this property is private.
|
boolean |
isRelation()
Returns whether this property is a relation.
|
boolean |
isToMany()
Returns whether this property is a to many relation.
|
void |
setPrimary(boolean isPrimary)
Sets whether this property is a primary key.
|
void |
setPrivate(boolean isPrivate)
Sets whether this property is private.
|
void |
setSubtype(java.lang.String aSubType)
Sets the subtype of this property.
|
void |
setSubtypeClass(java.lang.Class aClass)
Sets the subtype class.
|
void |
setType(java.lang.String aType)
Sets the type of this property.
|
java.lang.String |
toString()
Returns a string representation of this property (its name).
|
RXElement |
toXML(RXArchiver anArchiver)
XML archival.
|
public static final java.lang.String PROPERTY_TYPE_STRING
public static final java.lang.String PROPERTY_TYPE_NUMBER
public static final java.lang.String PROPERTY_TYPE_DATE
public static final java.lang.String PROPERTY_TYPE_BOOLEAN
public static final java.lang.String PROPERTY_TYPE_BINARY
public static final java.lang.String PROPERTY_TYPE_LIST
public static final java.lang.String PROPERTY_TYPE_MAP
public RMProperty()
public RMProperty(java.lang.String aName, java.lang.String aType, java.lang.String aSubtype, boolean isPrimary, boolean isPrivate)
public java.lang.String getName()
public java.lang.String getType()
public void setType(java.lang.String aType)
public java.lang.String getSubtype()
public void setSubtype(java.lang.String aSubType)
public java.lang.Class getSubtypeClass()
public void setSubtypeClass(java.lang.Class aClass)
public boolean isPrimary()
public void setPrimary(boolean isPrimary)
public boolean isPrivate()
public void setPrivate(boolean isPrivate)
public boolean isAttribute()
public boolean isRelation()
public boolean isToMany()
public java.lang.Object convertToType(java.lang.String aValue)
public int getNextUniqueId()
public boolean equals(java.lang.Object anObj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public RXElement toXML(RXArchiver anArchiver)
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)