Class Subproperty
- All Implemented Interfaces:
BaseCmfEntity<org.mitre.niem.cmf.HasProperty>
,Serializable
@Entity
public class Subproperty
extends BaseNamespaceEntity<Subproperty>
implements BaseCmfEntity<org.mitre.niem.cmf.HasProperty>
A subproperty is a property that is contained by a type, along with cardinality constraints.
Also called a child property association.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class gov.niem.tools.api.db.base.BaseNamespaceEntity
BaseNamespaceEntity.BaseNamespaceEntityBuilder<T extends BaseVersionEntity<T>,
C extends BaseNamespaceEntity<T>, B extends BaseNamespaceEntity.BaseNamespaceEntityBuilder<T, C, B>> Nested classes/interfaces inherited from class gov.niem.tools.api.db.base.BaseVersionEntity
BaseVersionEntity.BaseVersionEntityBuilder<T extends BaseVersionEntity<T>,
C extends BaseVersionEntity<T>, B extends BaseVersionEntity.BaseVersionEntityBuilder<T, C, B>> Nested classes/interfaces inherited from class gov.niem.tools.api.db.base.BaseModelEntity
BaseModelEntity.BaseModelEntityBuilder<C extends BaseModelEntity,
B extends BaseModelEntity.BaseModelEntityBuilder<C, B>> Nested classes/interfaces inherited from class gov.niem.tools.api.db.base.BaseStewardEntity
BaseStewardEntity.BaseStewardEntityBuilder<C extends BaseStewardEntity,
B extends BaseStewardEntity.BaseStewardEntityBuilder<C, B>> Nested classes/interfaces inherited from class gov.niem.tools.api.db.base.BaseEntity
BaseEntity.BaseEntityBuilder<C extends BaseEntity,
B extends BaseEntity.BaseEntityBuilder<C, B>> -
Field Summary
FieldsFields inherited from class gov.niem.tools.api.db.base.BaseVersionEntity
next, prev
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToCmfModel
(org.mitre.niem.cmf.Model cmfModel) builder()
protected boolean
boolean
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.getMax()
Max cardinality 'unbounded' or 1-9 with zero or more additional digits.getMin()
Min cardinality 0 or 1-9 with zero or more additional digits.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.int
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.Gets the version database id.int
hashCode()
void
setDefinition
(String definition) void
Max cardinality 'unbounded' or 1-9 with zero or more additional digits.void
Min cardinality 0 or 1-9 with zero or more additional digits.void
setProperty
(Property property) void
setPropertyQname
(String propertyQname) void
setSequence
(int sequence) void
void
setTypeQname
(String typeQname) void
setVersionId
(Long versionId) org.mitre.niem.cmf.HasProperty
toCmf()
toString()
Methods inherited from class gov.niem.tools.api.db.base.BaseNamespaceEntity
getNamespaceId, getNamespaceSummary, getVersion
Methods inherited from class gov.niem.tools.api.db.base.BaseVersionEntity
getModel, getNext, getNiemVersion, getNiemVersionNumber, getOriginal, getPrev, getVersionNumber, getVersionSummary, isDeprecated, isOriginal, setDeprecated, setNext, setOriginal, setPrev
Methods inherited from class gov.niem.tools.api.db.base.BaseModelEntity
getModelKey, getModelSummary, getSteward
Methods inherited from class gov.niem.tools.api.db.base.BaseStewardEntity
getStewardKey, getStewardSummary
Methods inherited from class gov.niem.tools.api.db.base.BaseEntity
getCreatedBy, getCreatedDate, getId, getLastModifiedBy, getLastModifiedDate, setCreatedBy, setCreatedDate, setId, setLastModifiedBy, setLastModifiedDate
-
Field Details
-
typeQname
-
propertyQname
-
-
Constructor Details
-
Subproperty
public Subproperty() -
Subproperty
public Subproperty(Type type, Property property, Long versionId, String min, String max, int sequence, @Nullable String definition, String typeQname, String propertyQname) Creates a newSubproperty
instance.- Parameters:
type
-property
-versionId
-min
- Min cardinality 0 or 1-9 with zero or more additional digits.max
- Max cardinality 'unbounded' or 1-9 with zero or more additional digits.sequence
-definition
-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:
getNamespace
in 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:BaseEntity
An 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:
getParentEntity
in classBaseEntity
-
getRoute
Description copied from class:BaseEntity
An endpoint to get information about an entity.- Specified by:
getRoute
in classBaseEntity
-
getClassName
Description copied from class:BaseEntity
A kind of NIEM entity, such as a Namespace or a Property.- Overrides:
getClassName
in classBaseEntity
-
getFullIdentifier
Description copied from class:BaseEntity
A human-readable and url-friendly unique identifier for an entity.- Specified by:
getFullIdentifier
in classBaseEntity
-
getLocalIdentifier
Description copied from class:BaseEntity
An 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:
getLocalIdentifier
in classBaseEntity
-
getTitle
Description copied from class:BaseEntity
A descriptive label or title used to identify an entity.- Specified by:
getTitle
in classBaseEntity
-
addToCmfModel
public void addToCmfModel(org.mitre.niem.cmf.Model cmfModel) throws org.mitre.niem.cmf.CMFException - Specified by:
addToCmfModel
in interfaceBaseCmfEntity<org.mitre.niem.cmf.HasProperty>
- Throws:
org.mitre.niem.cmf.CMFException
-
toCmf
public org.mitre.niem.cmf.HasProperty toCmf() throws org.mitre.niem.cmf.CMFException- Specified by:
toCmf
in interfaceBaseCmfEntity<org.mitre.niem.cmf.HasProperty>
- Throws:
org.mitre.niem.cmf.CMFException
-
builder
-
getVersionId
Description copied from class:BaseVersionEntity
Gets the version database id.- Overrides:
getVersionId
in classBaseVersionEntity<Subproperty>
-
getMin
Min cardinality 0 or 1-9 with zero or more additional digits. -
getMax
Max cardinality 'unbounded' or 1-9 with zero or more additional digits. -
getSequence
public int getSequence() -
getDefinition
-
setType
-
setProperty
-
setVersionId
-
setMin
Min cardinality 0 or 1-9 with zero or more additional digits. -
setMax
Max cardinality 'unbounded' or 1-9 with zero or more additional digits. -
setSequence
public void setSequence(int sequence) -
setDefinition
-
setTypeQname
-
setPropertyQname
-
toString
- Overrides:
toString
in classBaseNamespaceEntity<Subproperty>
-
equals
- Overrides:
equals
in classBaseNamespaceEntity<Subproperty>
-
canEqual
- Overrides:
canEqual
in classBaseNamespaceEntity<Subproperty>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBaseNamespaceEntity<Subproperty>
-