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
-
Constructor Summary
ConstructorDescriptionPipelineMetadata
(@NonNull URI location, @NonNull String name, @NonNull String description) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
@NonNull String
A description of the pipeline, possibly the description of the model that generated.@NonNull URI
Where this pipeline came from.@NonNull String
getName()
A name for this pipeline.int
hashCode()
toString()
withDescription
(String newDescription) withLocation
(URI newLocation)
-
Field Details
-
ANONYMOUS
-
-
Constructor Details
-
PipelineMetadata
-
-
Method Details
-
withName
- Returns:
- a new
PipelineMetadata
object with a new name
-
withDescription
- Returns:
- a new
PipelineMetadata
object with a new description
-
withLocation
- Returns:
- a new
PipelineMetadata
object 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
-