Class RMProperty

java.lang.Object
com.ribs.datasource.RMProperty

public class RMProperty extends Object
This class describes an attribute of an entity.
  • Field Details

  • Constructor Details

    • RMProperty

      public RMProperty()
      Creates an uninitialized property.
    • RMProperty

      public RMProperty(String aName, String aType, String aSubtype, boolean isPrimary, boolean isPrivate)
      Creates a property with the given name and type and subtype.
  • Method Details

    • getName

      public String getName()
      Returns the name of this property.
    • getType

      public String getType()
      Returns the type of this property.
    • setType

      public void setType(String aType)
      Sets the type of this property.
    • getSubtype

      public String getSubtype()
      Returns the subtype of this property.
    • setSubtype

      public void setSubtype(String aSubType)
      Sets the subtype of this property.
    • getSubtypeClass

      public Class getSubtypeClass()
      Returns the subtype class.
    • setSubtypeClass

      public void setSubtypeClass(Class aClass)
      Sets the subtype class.
    • isPrimary

      public boolean isPrimary()
      Returns whether this property is a primary key.
    • setPrimary

      public void setPrimary(boolean isPrimary)
      Sets whether this property is a primary key.
    • isPrivate

      public boolean isPrivate()
      Returns whether this property is private.
    • setPrivate

      public void setPrivate(boolean isPrivate)
      Sets whether this property is private.
    • isAttribute

      public boolean isAttribute()
      Returns whether this property is a simple attribute.
    • isRelation

      public boolean isRelation()
      Returns whether this property is a relation.
    • isToMany

      public boolean isToMany()
      Returns whether this property is a to many relation.
    • convertToType

      public Object convertToType(String aValue)
      Converts the given string to the properties type.
    • getNextUniqueId

      public int getNextUniqueId()
      Returns a unique id issued by this property.
    • equals

      public boolean equals(Object anObj)
      Standard equals implementation.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Returns a string representation of this property (its name).
      Overrides:
      toString in class Object
    • toXML

      public RXElement toXML(RXArchiver anArchiver)
      XML archival.
    • fromXML

      public Object fromXML(RXArchiver anArchiver, RXElement anElement)
      XML unarchival.