Package com.ribs.datasource
Class RMProperty
java.lang.Object
com.ribs.datasource.RMProperty
This class describes an attribute of an entity.
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an uninitialized property.RMProperty(String aName, String aType, String aSubtype, boolean isPrimary, boolean isPrivate) Creates a property with the given name and type and subtype.
- 
Method SummaryModifier and TypeMethodDescriptionconvertToType(String aValue) Converts the given string to the properties type.booleanStandard equals implementation.fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.getName()Returns the name of this property.intReturns a unique id issued by this property.Returns the subtype of this property.Returns the subtype class.getType()Returns the type of this property.booleanReturns whether this property is a simple attribute.booleanReturns whether this property is a primary key.booleanReturns whether this property is private.booleanReturns whether this property is a relation.booleanisToMany()Returns whether this property is a to many relation.voidsetPrimary(boolean isPrimary) Sets whether this property is a primary key.voidsetPrivate(boolean isPrivate) Sets whether this property is private.voidsetSubtype(String aSubType) Sets the subtype of this property.voidsetSubtypeClass(Class aClass) Sets the subtype class.voidSets the type of this property.toString()Returns a string representation of this property (its name).toXML(RXArchiver anArchiver) XML archival.
- 
Field Details- 
PROPERTY_TYPE_STRING- See Also:
 
- 
PROPERTY_TYPE_NUMBER- See Also:
 
- 
PROPERTY_TYPE_DATE- See Also:
 
- 
PROPERTY_TYPE_BOOLEAN- See Also:
 
- 
PROPERTY_TYPE_BINARY- See Also:
 
- 
PROPERTY_TYPE_LIST- See Also:
 
- 
PROPERTY_TYPE_MAP- See Also:
 
 
- 
- 
Constructor Details
- 
Method Details- 
getNameReturns the name of this property.
- 
getTypeReturns the type of this property.
- 
setTypeSets the type of this property.
- 
getSubtypeReturns the subtype of this property.
- 
setSubtypeSets the subtype of this property.
- 
getSubtypeClassReturns the subtype class.
- 
setSubtypeClassSets the subtype class.
- 
isPrimarypublic boolean isPrimary()Returns whether this property is a primary key.
- 
setPrimarypublic void setPrimary(boolean isPrimary) Sets whether this property is a primary key.
- 
isPrivatepublic boolean isPrivate()Returns whether this property is private.
- 
setPrivatepublic void setPrivate(boolean isPrivate) Sets whether this property is private.
- 
isAttributepublic boolean isAttribute()Returns whether this property is a simple attribute.
- 
isRelationpublic boolean isRelation()Returns whether this property is a relation.
- 
isToManypublic boolean isToMany()Returns whether this property is a to many relation.
- 
convertToTypeConverts the given string to the properties type.
- 
getNextUniqueIdpublic int getNextUniqueId()Returns a unique id issued by this property.
- 
equalsStandard equals implementation.
- 
toStringReturns a string representation of this property (its name).
- 
toXMLXML archival.
- 
fromXMLXML unarchival.
 
-