Package gov.niem.tools.api.db.property
Class Property
- All Implemented Interfaces:
BaseCmfEntity<org.mitre.niem.cmf.Property>
,Serializable
@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 enum
A kind of property indicating whether is is a concrete element, abstract element, or attribute.static class
Property.PropertyBuilder<C extends Property,
B extends Property.PropertyBuilder<C, B>> Nested classes/interfaces inherited from class gov.niem.tools.api.db.component.Component
Component.ComponentBuilder<T extends BaseNamespaceEntity<T>,
C extends Component<T>, B extends Component.ComponentBuilder<T, C, B>> Nested 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
Fields inherited from class gov.niem.tools.api.db.component.Component
definition, name, prefix, qname
Fields inherited from class gov.niem.tools.api.db.base.BaseVersionEntity
next, prev
-
Constructor Summary
ConstructorsModifierConstructorDescriptionProperty()
protected
Property
(Property.PropertyBuilder<?, ?> b) Property
(Type type, Property group, Property.Category category, String alias, String keywords, String exampleContent, String usageInfo, Set<Property> substitutions, Set<Subproperty> subproperties) Creates a newProperty
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToCmfModel
(org.mitre.niem.cmf.Model cmfModel) static Property.PropertyBuilder
<?, ?> builder()
protected boolean
boolean
getAlias()
A kind of property.A kind of NIEM entity, such as a Namespace or a Property.A human-readable and url-friendly unique identifier for an entity.getGroup()
Makes sure a potential Hibernate proxy is initialized.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.int
hashCode()
boolean
True if the property is an element and is abstract; false otherwise.boolean
True if the property is an attribute; false if the property is a regular or abstract element.boolean
True if the property is a regular or abstract element; false if the property is an attribute.void
void
setCategory
(Property.Category category) A kind of property.void
setExampleContent
(String exampleContent) void
A substitution group head, which may be replaced in message instances by this property.void
setKeywords
(String keywords) void
setSubproperties
(Set<Subproperty> subproperties) void
setSubstitutions
(Set<Property> substitutions) void
A type that describes the structure and value set of the property.void
setUsageInfo
(String usageInfo) org.mitre.niem.cmf.Property
toCmf()
toString()
Methods inherited from class gov.niem.tools.api.db.component.Component
getDefinition, getName, getName, getNamespace, getParentEntity, getPrefix, getPrefix, getQname, getTerms, setDefinition, setName, setNamespace, setPrefix, setQname, toSummary
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, getVersionId, 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
-
Constructor Details
-
Property
-
Property
public Property() -
Property
public Property(@Nullable Type type, @Nullable Property group, Property.Category category, String alias, String keywords, String exampleContent, String usageInfo, Set<Property> substitutions, Set<Subproperty> subproperties) Creates a newProperty
instance.- Parameters:
type
- A type that describes the structure and value set of the property.group
- A substitution group head, which may be replaced in message instances by this property.category
- A kind of property.alias
-keywords
-exampleContent
-usageInfo
-substitutions
-subproperties
-
-
-
Method Details
-
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: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. -
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.Property>
- Throws:
org.mitre.niem.cmf.CMFException
-
toCmf
public org.mitre.niem.cmf.Property toCmf() throws org.mitre.niem.cmf.CMFException- Specified by:
toCmf
in interfaceBaseCmfEntity<org.mitre.niem.cmf.Property>
- Overrides:
toCmf
in classComponent<Property>
- Throws:
org.mitre.niem.cmf.CMFException
-
builder
-
getCategory
A kind of property.- Specified by:
getCategory
in classComponent<Property>
-
getAlias
-
getKeywords
-
getExampleContent
-
getUsageInfo
-
getSubstitutions
-
getSubproperties
-
setType
A type that describes the structure and value set of the property. -
setGroup
A substitution group head, which may be replaced in message instances by this property. -
setCategory
A kind of property. -
setAlias
-
setKeywords
-
setExampleContent
-
setUsageInfo
-
setSubstitutions
-
setSubproperties
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-