Class TLcdGML31Association

All Implemented Interfaces:
ILcdDataObject, ILcdCloneable, ILcdDeepCloneable, ILcdFeatured, ILcdSelfDescribedFeatured, Serializable, Cloneable

public class TLcdGML31Association extends TLcdFeaturedDataObject
A pattern or base for derived types used to specify complex types corresponding to an unspecified UML association - either composition or aggregation. Restricts the cardinality of Objects contained in the association to a maximum of one. An instance of this type can contain an element representing an Object, or serve as a pointer to a remote Object. Descendents of this type can be restricted in an application schema to * allow only specified classes as valid participants in the aggregation * allow only association by reference (i.e. empty the content model) or by value (i.e. remove the xlinks). When used for association by reference, the value of the gml:remoteSchema attribute can be used to locate a schema fragment that constrains the target instance. In many cases it is desirable to impose the constraint prohibiting the occurence of both reference and value in the same instance, as that would be ambiguous. This is accomplished by adding a directive in the annotation element of the element declaration. This directive can be in the form of normative prose, or can use a Schematron pattern to automatically constrain co-occurrence - see the declaration for _strictAssociation below. If co-occurence is not prohibited, then both a link and content may be present. If this occurs in an instance, then the rule for interpretation is that the instance found by traversing the href provides the normative value of the property, and should be used when possible. The value(s) included as content may be used if the remote instance cannot be resolved. This may be considered to be a "cached" version of the value(s).
Since:
10.0
See Also:
  • Field Details

    • LINKED_OBJECT_PROPERTY

      public static final TLcdDataProperty LINKED_OBJECT_PROPERTY
      Data linkedObject property. The possible values for this property are instances of Object.
    • REMOTE_SCHEMA_PROPERTY

      public static final TLcdDataProperty REMOTE_SCHEMA_PROPERTY
      Data property that maps to the remoteSchema attribute. The possible values for this property are instances of URI.
    • OBJECT_PROPERTY

      public static final TLcdDataProperty OBJECT_PROPERTY
      Data property that maps to the _Object element. The possible values for this property are instances of Object.
  • Constructor Details

    • TLcdGML31Association

      public TLcdGML31Association()
    • TLcdGML31Association

      public TLcdGML31Association(TLcdDataType aType)
  • Method Details

    • getLinkInfo

      public Object getLinkInfo()
      Returns the value of the linkInfo property.
      Returns:
      the value of the LINK_INFO_PROPERTY property.
    • setLinkInfo

      public void setLinkInfo(Object aValue)
      Sets the value of the linkInfo property.
      Parameters:
      aValue - the value to set for the LINK_INFO_PROPERTY property.
    • getLinkedObject

      public Object getLinkedObject()
      Returns the value of the linkedObject property.
      Returns:
      the value of the LINKED_OBJECT_PROPERTY property.
    • setLinkedObject

      public void setLinkedObject(Object aValue)
      Sets the value of the linkedObject property.
      Parameters:
      aValue - the value to set for the LINKED_OBJECT_PROPERTY property.
    • getRemoteSchema

      public URI getRemoteSchema()
      Returns the value of the property that maps to the remoteSchema attribute.

      Reference to an XML Schema fragment that specifies the content model of the propertys value. This is in conformance with the XML Schema Section 4.14 Referencing Schemas from Elsewhere.

      Returns:
      the value of the REMOTE_SCHEMA_PROPERTY property.
    • setRemoteSchema

      public void setRemoteSchema(URI aValue)
      Sets the value of the property that maps to the remoteSchema attribute.

      Reference to an XML Schema fragment that specifies the content model of the propertys value. This is in conformance with the XML Schema Section 4.14 Referencing Schemas from Elsewhere.

      Parameters:
      aValue - the value to set for the REMOTE_SCHEMA_PROPERTY property.
    • getObject

      public Object getObject()
      Returns the value of the property that maps to the _Object element.

      This abstract element is the head of a substitutionGroup hierararchy which may contain either simpleContent or complexContent elements. It is used to assert the model position of "class" elements declared in other GML schemas.

      Returns:
      the value of the OBJECT_PROPERTY property.
    • setObject

      public void setObject(Object aValue)
      Sets the value of the property that maps to the _Object element.

      This abstract element is the head of a substitutionGroup hierararchy which may contain either simpleContent or complexContent elements. It is used to assert the model position of "class" elements declared in other GML schemas.

      Parameters:
      aValue - the value to set for the OBJECT_PROPERTY property.