Package gov.niem.tools.api.db.component
Class Component<T extends BaseNamespaceEntity<T>>
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<T>
gov.niem.tools.api.db.base.BaseVersionEntity<T>
gov.niem.tools.api.db.base.BaseNamespaceEntity<T>
gov.niem.tools.api.db.component.Component<T>
- Type Parameters:
T- - A subclass of Component, i.e., Property or Type.
- All Implemented Interfaces:
Serializable,Comparable<Component<T>>
@MappedSuperclass
@Indexed
public abstract class Component<T extends BaseNamespaceEntity<T>>
extends BaseNamespaceEntity<T>
implements Comparable<Component<T>>
A parent class for Property and Type.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringA definition describing a property or type.protected StringA name of the property or type.intA ranking used to support sorting component namespaces by category, with Core and Core Supplements sorting first, followed by domains, etc.protected StringA namespace prefix for the property or type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCustom sorting function for components.protected abstract Objectstatic StringReturn the second part (namespace prefix) of a qualified name string with a ":" delimiter.Namespace that defines this component.An immediate entity or scope to which this entity belongs.static StringReturn the first part (namespace prefix) of a qualified name string with a ":" delimiter.String[]getTerms()A set of terms from the name of the property or type, broken apart by camel casing.getTitle()A descriptive label or title used to identify an entity.org.mitre.niem.cmf.ComponenttoCmf()Returns key fields about a component.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, getStewardSummaryMethods inherited from class gov.niem.tools.api.db.base.BaseEntity
getClassName, getIdLabel, getIdLocalLabel, getRoute
-
Field Details
-
prefix
A namespace prefix for the property or type. -
qname
-
namespaceRank
public int namespaceRankA ranking used to support sorting component namespaces by category, with Core and Core Supplements sorting first, followed by domains, etc. -
name
@FullTextField(name="name_tokens",analyzer="camel") @FullTextField(name="name_substring",analyzer="nGram") @KeywordField(name="name_sort", normalizer="case", sortable=YES, projectable=YES) protected String nameA name of the property or type. -
definition
A definition describing a property or type.
-
-
Constructor Details
-
Component
public Component()
-
-
Method Details
-
getCategory
-
getNamespace
Namespace that defines this component.- Specified by:
getNamespacein classBaseNamespaceEntity<T extends BaseNamespaceEntity<T>>
-
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
-
getTitle
Description copied from class:BaseEntityA descriptive label or title used to identify an entity.- Specified by:
getTitlein classBaseEntity
-
getTerms
A set of terms from the name of the property or type, broken apart by camel casing. -
toSummary
Returns key fields about a component. -
getPrefix
Return the first part (namespace prefix) of a qualified name string with a ":" delimiter. For example, return "nc" given "nc:PersonBirthDate". -
getName
Return the second part (namespace prefix) of a qualified name string with a ":" delimiter. For example, return "PersonBirthDate" given "nc:PersonBirthDate". -
toCmf
public org.mitre.niem.cmf.Component toCmf() throws org.mitre.niem.cmf.CMFException- Throws:
org.mitre.niem.cmf.CMFException
-
compareTo
Custom sorting function for components. Returns components sorted by namespace rank, prefix, and name.- Specified by:
compareToin interfaceComparable<T extends BaseNamespaceEntity<T>>
-