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
A reference or message data model.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
A kind of model, such as reference, message, or other.static class
Model.ModelBuilder<C extends Model,
B extends Model.ModelBuilder<C, B>> static enum
A kind of message objective, such as implementation, example, or test.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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionModel()
protected
Model
(Model.ModelBuilder<?, ?> b) Model
(Steward steward, String modelKey, String shortName, String fullName, String description, String website, String repo, String keywords, String subjects, String purpose, String developer, Model.Category category, Model.Objective objective, Set<Version> versions) Creates a newModel
instance.Creates 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 TypeMethodDescriptionstatic Model.ModelBuilder
<?, ?> builder()
protected boolean
boolean
A kind of data model.A kind of NIEM entity, such as a Namespace or a Property.A description of a model.A name of an organization or person that developed a model.A human-readable and url-friendly unique identifier for an entity.A full name used to identify a model.A common alias, term, or phrase that would help to facilitate search and discovery of this IEPD.An identifier, unique within its immediate scope.A human-readable and url-friendly model identifier generated from the shortName field, unique within the set of models owned by its steward.Gets the API route to the NIEM model.An intended use for a model, such as for actual implementation or for testing tool features or IEPD / message specification features.An immediate entity or scope to which this entity belongs.A description of the intended usage and reason for which an IEPD exists.getRepo()
A code repository which hosts full IEPDs or message specifications representing the model.getRoute()
An endpoint to get information about an entity.A short name or acronym used to identify a model.Gets the Steward responsible for this model.A description of the environment or NIEM Domain in which this IEPD is applicable or used.getTitle()
A descriptive label or title used to identify an entity.A set of versions defined by a model.A website address by which a person or organization may be contacted.int
hashCode()
void
setCategory
(Model.Category category) A kind of data model.void
setDescription
(String description) A description of a model.void
setDeveloper
(String developer) A name of an organization or person that developed a model.void
setFullName
(String fullName) A full name used to identify a model.void
setKeywords
(String keywords) A common alias, term, or phrase that would help to facilitate search and discovery of this IEPD.void
setModelKey
(String modelKey) A human-readable and url-friendly model identifier generated from the shortName field, unique within the set of models owned by its steward.void
setObjective
(Model.Objective objective) An intended use for a model, such as for actual implementation or for testing tool features or IEPD / message specification features.void
setPurpose
(String purpose) A description of the intended usage and reason for which an IEPD exists.void
A code repository which hosts full IEPDs or message specifications representing the model.void
setShortName
(String shortName) A short name or acronym used to identify a model.void
setSteward
(Steward steward) A steward responsible for the management of the model.void
setSubjects
(String subjects) A description of the environment or NIEM Domain in which this IEPD is applicable or used.void
setVersions
(Set<Version> versions) A set of versions defined by a model.void
setWebsite
(String website) A website address by which a person or organization may be contacted.toString()
Gets keys fields about the model.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
-
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. -
Model
-
Model
public Model() -
Model
public Model(Steward steward, String modelKey, String shortName, String fullName, String description, String website, String repo, String keywords, String subjects, String purpose, String developer, Model.Category category, Model.Objective objective, Set<Version> versions) Creates a newModel
instance.- Parameters:
steward
- A steward responsible for the management of the model.modelKey
- A human-readable and url-friendly model identifier generated from the shortName field, unique within the set of models owned by its steward.shortName
- A short name or acronym used to identify a model.fullName
- A full name used to identify a model.description
- A description of a model.website
- A website address by which a person or organization may be contacted.repo
- A code repository which hosts full IEPDs or message specifications representing the model.keywords
- A common alias, term, or phrase that would help to facilitate search and discovery of this IEPD.subjects
- A description of the environment or NIEM Domain in which this IEPD is applicable or used.purpose
- A description of the intended usage and reason for which an IEPD exists.developer
- A name of an organization or person that developed a model.category
- A kind of data model.objective
- An intended use for a model, such as for actual implementation or for testing tool features or IEPD / message specification features.versions
- A set of versions defined by a model.
-
-
Method Details
-
getSteward
Gets the Steward responsible for this model. Makes sure a potential Hibernate proxy is initialized.- Specified by:
getSteward
in classBaseStewardEntity
-
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
-
getNiemRoute
Gets the API route to the NIEM model. -
toSummary
Gets keys fields about the model. -
builder
-
getModelKey
A human-readable and url-friendly model identifier generated from the shortName field, unique within the set of models owned by its steward. -
getShortName
A short name or acronym used to identify a model. -
getFullName
A full name used to identify a model. -
getDescription
A description of a model. -
getWebsite
A website address by which a person or organization may be contacted. -
getRepo
A code repository which hosts full IEPDs or message specifications representing the model. -
getKeywords
A common alias, term, or phrase that would help to facilitate search and discovery of this IEPD. -
getSubjects
A description of the environment or NIEM Domain in which this IEPD is applicable or used. -
getPurpose
A description of the intended usage and reason for which an IEPD exists. -
getDeveloper
A name of an organization or person that developed a model. -
getCategory
A kind of data model. -
getObjective
An intended use for a model, such as for actual implementation or for testing tool features or IEPD / message specification features. -
getVersions
A set of versions defined by a model. -
setSteward
A steward responsible for the management of the model. -
setModelKey
A human-readable and url-friendly model identifier generated from the shortName field, unique within the set of models owned by its steward. -
setShortName
A short name or acronym used to identify a model. -
setFullName
A full name used to identify a model. -
setDescription
A description of a model. -
setWebsite
A website address by which a person or organization may be contacted. -
setRepo
A code repository which hosts full IEPDs or message specifications representing the model. -
setKeywords
A common alias, term, or phrase that would help to facilitate search and discovery of this IEPD. -
setSubjects
A description of the environment or NIEM Domain in which this IEPD is applicable or used. -
setPurpose
A description of the intended usage and reason for which an IEPD exists. -
setDeveloper
A name of an organization or person that developed a model. -
setCategory
A kind of data model. -
setObjective
An intended use for a model, such as for actual implementation or for testing tool features or IEPD / message specification features. -
setVersions
A set of versions defined by a model. -
toString
- Overrides:
toString
in classBaseStewardEntity
-
equals
- Overrides:
equals
in classBaseStewardEntity
-
canEqual
- Overrides:
canEqual
in classBaseStewardEntity
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBaseStewardEntity
-