Package gov.niem.tools.api.db.version
Class Version.VersionBuilder<C extends Version,B extends Version.VersionBuilder<C,B>>
java.lang.Object
gov.niem.tools.api.db.base.BaseEntity.BaseEntityBuilder<C,B>
gov.niem.tools.api.db.base.BaseStewardEntity.BaseStewardEntityBuilder<C,B>
gov.niem.tools.api.db.base.BaseModelEntity.BaseModelEntityBuilder<C,B>
gov.niem.tools.api.db.version.Version.VersionBuilder<C,B>
- Enclosing class:
Version
public abstract static class Version.VersionBuilder<C extends Version,B extends Version.VersionBuilder<C,B>>
extends BaseModelEntity.BaseModelEntityBuilder<C,B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract C
build()
category
(Version.Category category) A kind of version, such as major or minor.conformanceTargets
(String conformanceTargets) A list of one or more URIs that each represents an IEPD class to which the IEPD claims conformance.A draft of a version, such as "alpha1" or "rc2".exchangePartners
(String exchangePartners) A name of an entity or organization that uses this IEPD.exchangePattern
(String exchangePattern) A description of a transactional or design pattern used for this IEPD.isCurrent
(boolean isCurrent) True if this version of the model is considered the current version; false otherwise.isPublished
(boolean isPublished) True if a version has been published and the content is to be considered finalized; false otherwise.messageRoots
(Set<Property> messageRoots) A set of properties that serve as the root or starting point of message instances.namespaces
(Set<Namespace> namespaces) A set of namespaces defined by a version of a model.Corresponding entity mapped from the next version.niemVersion
(Version niemVersion) A NIEM version on which this version is based, or itself if this is a NIEM version.Corresponding entity mapped from the previous version.A date the latest changes to an IEPD were published (i.e., CreationDate of previous version).protected abstract B
self()
A description of the current state of this IEPD in development; may also project future plans for the IEPD.toString()
An URI identifier for a version of a model.versionNumber
(@NonNull String versionNumber) A number which identifies a version of a model, such as "5.2" or "1.0.1".Methods inherited from class gov.niem.tools.api.db.base.BaseEntity.BaseEntityBuilder
createdBy, createdDate, id, lastModifiedBy, lastModifiedDate
-
Constructor Details
-
VersionBuilder
public VersionBuilder()
-
-
Method Details
-
model
- Returns:
this
.
-
versionNumber
A number which identifies a version of a model, such as "5.2" or "1.0.1".- Returns:
this
.
-
draft
A draft of a version, such as "alpha1" or "rc2".- Returns:
this
.
-
isPublished
True if a version has been published and the content is to be considered finalized; false otherwise.- Returns:
this
.
-
isCurrent
True if this version of the model is considered the current version; false otherwise.- Returns:
this
.
-
uri
An URI identifier for a version of a model.- Returns:
this
.
-
conformanceTargets
A list of one or more URIs that each represents an IEPD class to which the IEPD claims conformance.- Returns:
this
.
-
exchangePattern
A description of a transactional or design pattern used for this IEPD.- Returns:
this
.
-
exchangePartners
A name of an entity or organization that uses this IEPD.- Returns:
this
.
-
revised
A date the latest changes to an IEPD were published (i.e., CreationDate of previous version).- Returns:
this
.
-
status
A description of the current state of this IEPD in development; may also project future plans for the IEPD.- Returns:
this
.
-
category
A kind of version, such as major or minor.- Returns:
this
.
-
namespaces
A set of namespaces defined by a version of a model.- Returns:
this
.
-
messageRoots
A set of properties that serve as the root or starting point of message instances.- Returns:
this
.
-
prev
Corresponding entity mapped from the previous version.- Returns:
this
.
-
next
Corresponding entity mapped from the next version.- Returns:
this
.
-
niemVersion
A NIEM version on which this version is based, or itself if this is a NIEM version.- Returns:
this
.
-
self
- Specified by:
self
in classBaseModelEntity.BaseModelEntityBuilder<C extends Version,
B extends Version.VersionBuilder<C, B>>
-
build
- Specified by:
build
in classBaseModelEntity.BaseModelEntityBuilder<C extends Version,
B extends Version.VersionBuilder<C, B>>
-
toString
- Overrides:
toString
in classBaseModelEntity.BaseModelEntityBuilder<C extends Version,
B extends Version.VersionBuilder<C, B>>
-