Package gov.niem.tools.api.db.model
Class Model
java.lang.Object
gov.niem.tools.api.db.base.BaseEntity
gov.niem.tools.api.db.base.BaseStewardEntity
gov.niem.tools.api.db.model.Model
- All Implemented Interfaces:
Serializable,Comparable<Model>
A reference or message data model.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumA kind of model, such as reference, message, or other.static enumA kind of message objective, such as implementation, example, or test. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a model with the given fields.Model(String shortName, String longName, Model.Category category) Creates a model with the given fields.Model(String shortName, String longName, Steward steward, Model.Category category) Creates a model with the given fields. -
Method Summary
Modifier and TypeMethodDescriptionintCustom sorting function for models.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 API route to the NIEM model.An immediate entity or scope to which this entity belongs.getRoute()An endpoint to get information about an entity.Gets the Steward responsible for this model.getTitle()A descriptive label or title used to identify an entity.Gets a sorted list of versions that belong to this model.Gets keys fields about the model.Methods inherited from class gov.niem.tools.api.db.base.BaseStewardEntity
getStewardKey, getStewardSummary
-
Field Details
-
niemModelKey
- See Also:
-
-
Constructor Details
-
Model
Creates a model with the given fields. -
Model
Creates a model with the given fields. -
Model
Creates a model with the given fields.
-
-
Method Details
-
getSteward
Gets the Steward responsible for this model. Makes sure a potential Hibernate proxy is initialized.- Specified by:
getStewardin classBaseStewardEntity
-
getVersions
Gets a sorted list of versions that belong to this model. Makes sure potential Hibernate proxies are initialized. -
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
-
getNiemRoute
Gets the API route to the NIEM model. -
toSummary
Gets keys fields about the model. -
compareTo
Custom sorting function for models. Return the NIEM reference model first, then other NIEM models, then remaining models sorted by model key.- Specified by:
compareToin interfaceComparable<Model>
-