Package gov.niem.tools.api.db.namespace
Class Namespace.NamespaceBuilder<C extends Namespace,B extends Namespace.NamespaceBuilder<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.base.BaseVersionEntity.BaseVersionEntityBuilder<Namespace,C,B>
gov.niem.tools.api.db.namespace.Namespace.NamespaceBuilder<C,B>
- Enclosing class:
Namespace
public abstract static class Namespace.NamespaceBuilder<C extends Namespace,B extends Namespace.NamespaceBuilder<C,B>>
extends BaseVersionEntity.BaseVersionEntityBuilder<Namespace,C,B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract C
build()
category
(Namespace.Category category) A kind of namespace.definition
(String definition) A definition that describes a namespace.A draft version of a namespace.The filename to use for representations of this namespace such as XML schemas, without a file extension.The filepath to use for nested representations of this namespace such as for XML schemas, without the filename or extension.generation
(Namespace.Generation generation) A means by which a namespace should be generated.A name of a namespace.A short, non-normative identifier for a namespace.properties
(Set<Property> properties) protected abstract B
self()
target
(Namespace.NdrTarget target) A code representing an NDR conformance target, or null if the namespace is not meant to be conformant.toString()
A normative identifier for a namespace.Model version in which this entity is defined.Methods inherited from class gov.niem.tools.api.db.base.BaseVersionEntity.BaseVersionEntityBuilder
isDeprecated, next, original, prev
Methods inherited from class gov.niem.tools.api.db.base.BaseEntity.BaseEntityBuilder
createdBy, createdDate, id, lastModifiedBy, lastModifiedDate
-
Constructor Details
-
NamespaceBuilder
public NamespaceBuilder()
-
-
Method Details
-
version
Model version in which this entity is defined.- Returns:
this
.
-
prefix
A short, non-normative identifier for a namespace.- Returns:
this
.
-
name
A name of a namespace.- Returns:
this
.
-
uri
A normative identifier for a namespace.- Returns:
this
.
-
definition
A definition that describes a namespace.- Returns:
this
.
-
category
A kind of namespace.- Returns:
this
.
-
draft
A draft version of a namespace. NIEM conventions are to use the value "1" for a namespace that has reached release candidate status or has been published.- Returns:
this
.
-
target
A code representing an NDR conformance target, or null if the namespace is not meant to be conformant.- Returns:
this
.
-
generation
A means by which a namespace should be generated.- build: Generate by assembling its properties and types
- static_file: Include it's pre-built file (e.g., externals and utilities)
- none: Namespace may be referenced but does not need to be included (e.g., XML Schema)
- Returns:
this
.
-
filename
The filename to use for representations of this namespace such as XML schemas, without a file extension.- Returns:
this
.
-
filepath
The filepath to use for nested representations of this namespace such as for XML schemas, without the filename or extension.- Returns:
this
.
-
types
- Returns:
this
.
-
properties
- Returns:
this
.
-
self
- Specified by:
self
in classBaseVersionEntity.BaseVersionEntityBuilder<Namespace,
C extends Namespace, B extends Namespace.NamespaceBuilder<C, B>>
-
build
- Specified by:
build
in classBaseVersionEntity.BaseVersionEntityBuilder<Namespace,
C extends Namespace, B extends Namespace.NamespaceBuilder<C, B>>
-
toString
- Overrides:
toString
in classBaseVersionEntity.BaseVersionEntityBuilder<Namespace,
C extends Namespace, B extends Namespace.NamespaceBuilder<C, B>>
-