Package gov.niem.tools.api.db.property
Class Property
java.lang.Object
- All Implemented Interfaces:
BaseCmfEntity<org.mitre.niem.cmf.Property>,Serializable,Comparable<Component<Property>>
@Entity
@Indexed
public class Property
extends Component<Property>
implements BaseCmfEntity<org.mitre.niem.cmf.Property>
A property represents a concept, idea, or thing.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumA kind of property indicating whether is is a concrete element, abstract element, or attribute.static enumAn alternate way to categorize a property based on its type. -
Field Summary
Fields inherited from class gov.niem.tools.api.db.component.Component
definition, name, namespaceRank, prefix, qname -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.mitre.niem.cmf.ComponentaddToCmfModel(org.mitre.niem.cmf.Model cmfModel, boolean addDependencies, AddModelReason addModelReason, Test test) Adds this property as a data property to the given CMF model if not already present.A kind of NIEM entity, such as a Namespace or a Property.An alternate way to categorize a property based on its type.getGroup()Makes sure a potential Hibernate proxy is initialized.A human-readable and url-friendly unique identifier for an entity.An identifier, unique within its immediate scope.getRoute()An endpoint to get information about an entity.getTitle()A descriptive label or title used to identify an entity.getType()Makes sure a potential Hibernate proxy is initialized.booleanTrue if the property is an element and is abstract; false otherwise.booleanTrue if the property is an attribute; false if the property is a regular or abstract element.booleanTrue if this property can be considered a CMF data property; false if it is a CMF object property.booleanTrue if the property is a regular or abstract element; false if the property is an attribute.org.mitre.niem.cmf.PropertytoCmf()org.mitre.niem.cmf.DataPropertyConverts a property to a CMF data property.org.mitre.niem.cmf.ObjectPropertyConverts a property to a CMF object property.Methods inherited from class gov.niem.tools.api.db.component.Component
compareTo, getCategory, getName, getNamespace, getParentEntity, getPrefix, getTerms, toSummaryMethods 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
-
Constructor Details
-
Property
public Property()
-
-
Method Details
-
getContentStyle
An alternate way to categorize a property based on its type. Identifies whether it carries properties (an object) -
getGroup
Makes sure a potential Hibernate proxy is initialized. -
getType
Makes sure a potential Hibernate proxy is initialized. -
isElement
public boolean isElement()True if the property is a regular or abstract element; false if the property is an attribute. -
isAttribute
public boolean isAttribute()True if the property is an attribute; false if the property is a regular or abstract element. -
isAbstract
public boolean isAbstract()True if the property is an element and is abstract; false otherwise. -
getTypeSummary
-
getGroupSummary
-
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. -
isCmfDataProperty
public boolean isCmfDataProperty()True if this property can be considered a CMF data property; false if it is a CMF object property. -
addToCmfModel
public org.mitre.niem.cmf.Component addToCmfModel(org.mitre.niem.cmf.Model cmfModel, boolean addDependencies, AddModelReason addModelReason, Test test) throws org.mitre.niem.cmf.CMFException, EntityNotUniqueException Adds this property as a data property to the given CMF model if not already present.- Specified by:
addToCmfModelin interfaceBaseCmfEntity<org.mitre.niem.cmf.Property>- Parameters:
cmfModel- The CMF modeladdDependencies- True to also add property dependencies if not already in the CMF model (namespace, type, group); false 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.CMFExceptionEntityNotUniqueException
-
toCmf
public org.mitre.niem.cmf.Property toCmf() throws org.mitre.niem.cmf.CMFException- Specified by:
toCmfin interfaceBaseCmfEntity<org.mitre.niem.cmf.Property>- Overrides:
toCmfin classComponent<Property>- Throws:
org.mitre.niem.cmf.CMFException
-
toCmfObject
public org.mitre.niem.cmf.ObjectProperty toCmfObject() throws org.mitre.niem.cmf.CMFExceptionConverts a property to a CMF object property.- Throws:
org.mitre.niem.cmf.CMFException
-
toCmfDataProperty
public org.mitre.niem.cmf.DataProperty toCmfDataProperty() throws org.mitre.niem.cmf.CMFExceptionConverts a property to a CMF data property.- Throws:
org.mitre.niem.cmf.CMFException
-