Package org.vast.sensorML
Class SMLBuilders.DescribedObjectBuilder<B extends SMLBuilders.DescribedObjectBuilder<B,T>,T extends DescribedObject>
java.lang.Object
org.vast.util.BaseBuilder<T>
org.vast.sensorML.SMLBuilders.DescribedObjectBuilder<B,T>
- Direct Known Subclasses:
SMLBuilders.AbstractProcessBuilder
,SMLBuilders.BaseDeploymentBuilder
,SMLBuilders.BaseModeBuilder
- Enclosing class:
- SMLBuilders
public abstract static class SMLBuilders.DescribedObjectBuilder<B extends SMLBuilders.DescribedObjectBuilder<B,T>,T extends DescribedObject>
extends BaseBuilder<T>
-
Field Summary
Fields inherited from class org.vast.util.BaseBuilder
instance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCapabilityList
(String name, CapabilityList propList) addCapabilityList
(String name, SMLMetadataBuilders.CapabilityListBuilder builder) addCharacteristicList
(String name, CharacteristicList propList) addClassifier
(Term term) Adds a classifier to the default list (first one in document)addContact
(org.isotc211.v2005.gmd.CIResponsibleParty contact) addDocument
(String role, String label, String desc, String url) addDocument
(String role, org.isotc211.v2005.gmd.CIOnlineResource doc) addDocument
(String role, SMLMetadataBuilders.CIOnlineResourceBuilder builder) addIdentifier
(String label, String def, String value) Adds a custom identifieraddIdentifier
(Term term) Adds an identifier to the default list (first one in document)description
(String description) Sets the process descriptionStart from an existing instanceSets the process IDSets the process nameSets the process unique identifiervalidFrom
(OffsetDateTime begin) validTimePeriod
(OffsetDateTime begin, OffsetDateTime end) Methods inherited from class org.vast.util.BaseBuilder
build
-
Constructor Details
-
DescribedObjectBuilder
-
-
Method Details
-
from
Start from an existing instance- Parameters:
obj
- instance of DescribedObject to start from. No copy is made, the instance will be mutated by the builder- Returns:
- This builder for chaining
-
id
Sets the process ID- Parameters:
id
-- Returns:
- This builder for chaining
-
name
Sets the process name- Parameters:
name
-- Returns:
- This builder for chaining
-
description
Sets the process description- Parameters:
description
-- Returns:
- This builder for chaining
-
uniqueID
Sets the process unique identifier- Parameters:
uid
-- Returns:
- This builder for chaining
-
addIdentifier
Adds a custom identifier- Parameters:
label
- Label of identifier (e.g. "Serial Number")def
- Definition URI of identifier (link to online definition)value
- Identifier value- Returns:
- This builder for chaining
-
addIdentifier
Adds an identifier to the default list (first one in document)- Parameters:
term
- The identifier- Returns:
- This builder for chaining
-
addIdentifier
-
addClassifier
Adds a classifier to the default list (first one in document)- Parameters:
term
- The classifier- Returns:
- This builder for chaining
-
addClassifier
-
validTimePeriod
-
validFrom
-
addCharacteristicList
-
addCharacteristicList
-
addCapabilityList
-
addCapabilityList
-
addDocument
-
addDocument
-
addDocument
-
addContact
-
addContact
-