Package nz.org.riskscape.pipeline
Class PipelineMetadata
java.lang.Object
nz.org.riskscape.pipeline.PipelineMetadata
Some basic metadata that can be associated with a pipeline
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPipelineMetadata(@NonNull URI location, @NonNull String name, @NonNull String description) Creates a newPipelineMetadatainstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull StringA description of the pipeline, possibly the description of the model that generated.@NonNull URIWhere this pipeline came from.@NonNull StringgetName()A name for this pipeline.inthashCode()toString()withDescription(String newDescription) withLocation(URI newLocation)
-
Field Details
-
ANONYMOUS
-
-
Constructor Details
-
PipelineMetadata
public PipelineMetadata(@NonNull @NonNull URI location, @NonNull @NonNull String name, @NonNull @NonNull String description) Creates a new
PipelineMetadatainstance.- Parameters:
location- Where this pipeline came from. Might be a config file that generated it, or a location containing just the source.name- A name for this pipeline. Could be the name of the model that generated it, or some other suitable descriptor.description- A description of the pipeline, possibly the description of the model that generated. Will be an empty string instead of null for ease of handling
-
-
Method Details
-
withName
- Returns:
- a new
PipelineMetadataobject with a new name
-
withDescription
- Returns:
- a new
PipelineMetadataobject with a new description
-
withLocation
- Returns:
- a new
PipelineMetadataobject with a new location
-
getLocation
Where this pipeline came from. Might be a config file that generated it, or a location containing just the source.
-
getName
A name for this pipeline. Could be the name of the model that generated it, or some other suitable descriptor.
-
getDescription
A description of the pipeline, possibly the description of the model that generated. Will be an empty string instead of null for ease of handling
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-