Class RelationDescriptor

All Implemented Interfaces:
Serializable, Comparable

public class RelationDescriptor extends AttributeDescriptor
A special attribute descriptor for describing the item relation ends.

Item relations are accessed via attributes at each member of the relation. Besides their value type these attributes know the relation type which stores all relation tuples.

See Also:
  • Field Details

  • Constructor Details

    • RelationDescriptor

      public RelationDescriptor()
  • Method Details

    • checkSearchableChange

      protected void checkSearchableChange(boolean newSearchable) throws JaloInvalidParameterException
      Overrides superclass since relation descriptors are always searchable.
      Overrides:
      checkSearchableChange in class AttributeDescriptor
      Throws:
      JaloInvalidParameterException - if it cannot become searchable
    • isSource

      public boolean isSource()
      Tells whether this attribute belong to the source end of the relation or to the target end.
    • isOrdered

      public boolean isOrdered()
      Tells whether this attribute has been marked as 'ordered'.
    • getRelationName

      public String getRelationName()
      Returns the relation name.

      This is just a shortcut for getting the relation type and calling Type.getCode() on it. Nervertheless surely faster.

    • getRelationType

      public RelationType getRelationType()
      Returns the relation type this attribute belongs to.
    • getXMLDefinition

      public String getXMLDefinition()
      Since relation descriptors are created during relation creation, they do not have an XML definition of their own.
      Overrides:
      getXMLDefinition in class AttributeDescriptor
      Returns:
      empty string
    • exportXMLDefinition

      public String exportXMLDefinition(org.znerd.xmlenc.XMLOutputter xout)
      Overrides:
      exportXMLDefinition in class AttributeDescriptor