Class Subproperty
java.lang.Object
gov.niem.tools.api.db.base.BaseEntity
gov.niem.tools.api.db.base.BaseStewardEntity
gov.niem.tools.api.db.base.BaseModelEntity
gov.niem.tools.api.db.base.BaseVersionedEntity<Subproperty>
gov.niem.tools.api.db.base.BaseVersionEntity<Subproperty>
gov.niem.tools.api.db.base.BaseNamespaceEntity<Subproperty>
gov.niem.tools.api.db.subproperty.Subproperty
- All Implemented Interfaces:
BaseCmfEntity<org.mitre.niem.cmf.PropertyAssociation>,Serializable,Comparable<Subproperty>
@Entity
public class Subproperty
extends BaseNamespaceEntity<Subproperty>
implements BaseCmfEntity<org.mitre.niem.cmf.PropertyAssociation>, Comparable<Subproperty>
A subproperty is a property that is contained by a type, along with cardinality constraints.
Also called a child property association.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.mitre.niem.cmf.PropertyAssociationaddToCmfModel(org.mitre.niem.cmf.Model cmfModel, boolean addDependencies, AddModelReason addModelReason, Test test) Add self to the given CMF model if not already there.org.mitre.niem.cmf.AugmentRecordaddToCmfModelAsAugmentationRecord(org.mitre.niem.cmf.Model cmfModel, Type augmentedType) Add subproperty to the CMF model as an augmentation record.intcompareTo(Subproperty other) Custom sort function for subproperties, sorting by type qname, then sequence.A kind of NIEM entity, such as a Namespace or a Property.A human-readable and url-friendly unique identifier for an entity.An identifier, unique within its immediate scope.Gets the namespace where this subproperty is defined (the type namespace).An immediate entity or scope to which this entity belongs.Gets the property of this subproperty.Gets the namespace prefix of this subproperty's property.Gets the qualified name of this subproperty's property.getRoute()An endpoint to get information about an entity.getTitle()A descriptive label or title used to identify an entity.getType()Gets the type of this subproperty.Gets the namespace prefix of this subproperty's type.Gets the qualified name of this subproperty's type.Gets summary fields about this subproperty's type.org.mitre.niem.cmf.PropertyAssociationtoCmf()Methods inherited from class gov.niem.tools.api.db.base.BaseNamespaceEntity
getNamespaceId, getNamespaceSummary, getVersionMethods inherited from class gov.niem.tools.api.db.base.BaseVersionEntity
getCurrent, getModel, getNiemVersion, getNiemVersionNumber, getOriginal, getVersionId, getVersionNumber, getVersionSummary, isCurrent, isOriginalMethods inherited from class gov.niem.tools.api.db.base.BaseVersionedEntity
getNext, getPrevMethods inherited from class gov.niem.tools.api.db.base.BaseModelEntity
getModelKey, getModelSummary, getStewardMethods inherited from class gov.niem.tools.api.db.base.BaseStewardEntity
getStewardKey, getStewardSummary
-
Field Details
-
typeQname
-
propertyQname
-
-
Method Details
-
getType
Gets the type of this subproperty. Makes sure a potential Hibernate proxy is initialized. -
getProperty
Gets the property of this subproperty. Makes sure a potential Hibernate proxy is initialized. -
getNamespace
Gets the namespace where this subproperty is defined (the type namespace).- Specified by:
getNamespacein classBaseNamespaceEntity<Subproperty>
-
getTypeQname
Gets the qualified name of this subproperty's type. -
getTypePrefix
Gets the namespace prefix of this subproperty's type. -
getPropertyQname
Gets the qualified name of this subproperty's property. -
getPropertyPrefix
Gets the namespace prefix of this subproperty's property. -
getTypeSummary
Gets summary fields about this subproperty's type. -
getPropertySummary
-
getParentEntity
Description copied from class:BaseEntityAn immediate entity or scope to which this entity belongs. Examples include a steward (parent) for a model or a namespace (parent) for a property or type.- Specified by:
getParentEntityin classBaseEntity
-
getRoute
Description copied from class:BaseEntityAn endpoint to get information about an entity.- Specified by:
getRoutein classBaseEntity
-
getClassName
Description copied from class:BaseEntityA kind of NIEM entity, such as a Namespace or a Property.- Overrides:
getClassNamein classBaseEntity
-
getIdLabel
Description copied from class:BaseEntityA human-readable and url-friendly unique identifier for an entity.- Specified by:
getIdLabelin classBaseEntity
-
getIdLocalLabel
Description copied from class:BaseEntityAn identifier, unique within its immediate scope. Examples include a prefix (uniquely identifying a namespace) or a qualified name (uniquely identifying a property or a type) within a version of a model.- Specified by:
getIdLocalLabelin classBaseEntity
-
getTitle
Description copied from class:BaseEntityA descriptive label or title used to identify an entity.- Specified by:
getTitlein classBaseEntity
-
addToCmfModel
public org.mitre.niem.cmf.PropertyAssociation addToCmfModel(org.mitre.niem.cmf.Model cmfModel, boolean addDependencies, AddModelReason addModelReason, Test test) throws org.mitre.niem.cmf.CMFException Description copied from interface:BaseCmfEntityAdd self to the given CMF model if not already there.- Specified by:
addToCmfModelin interfaceBaseCmfEntity<org.mitre.niem.cmf.PropertyAssociation>- Parameters:
cmfModel- The CMF model.addDependencies- True to also add dependencies if not already in the CMF model (namespace, type, group); false (default) to just add this property.addModelReason- Indicates the reason why a component is being added to the model, either directly due to a task like migration or transformation, or indirectly as a required dependency.test- If present, log info to given test object.- Throws:
org.mitre.niem.cmf.CMFException
-
addToCmfModelAsAugmentationRecord
public org.mitre.niem.cmf.AugmentRecord addToCmfModelAsAugmentationRecord(org.mitre.niem.cmf.Model cmfModel, Type augmentedType) throws org.mitre.niem.cmf.CMFException Add subproperty to the CMF model as an augmentation record.- Parameters:
augmentedType- The original type being augmented.- Throws:
org.mitre.niem.cmf.CMFException
-
toCmf
public org.mitre.niem.cmf.PropertyAssociation toCmf() throws org.mitre.niem.cmf.CMFException- Specified by:
toCmfin interfaceBaseCmfEntity<org.mitre.niem.cmf.PropertyAssociation>- Throws:
org.mitre.niem.cmf.CMFException
-
compareTo
Custom sort function for subproperties, sorting by type qname, then sequence.- Specified by:
compareToin interfaceComparable<Subproperty>
-