public abstract class AbstractNamed extends AbstractCloneable implements Named
Named
WorkflowBean
.AbstractCloneable.Cloning, AbstractCloneable.CopyVisitor
INVALID_NAME
Constructor and Description |
---|
AbstractNamed()
Constructs a
Named WorkflowBean with a random UUID as the name. |
AbstractNamed(String name)
Constructs a
Named WorkflowBean with the specified name. |
Modifier and Type | Method and Description |
---|---|
protected void |
cloneInto(WorkflowBean clone,
AbstractCloneable.Cloning cloning) |
int |
compareTo(Object o) |
boolean |
equals(Object obj) |
Collection<Annotation> |
getAnnotations()
Get all the annotations that pertain to this workflow element.
|
String |
getName()
Returns the name of the
WorkflowBean . |
URI |
getRelativeURI(WorkflowBean relativeTo)
Get the URI of this workflow element relative to another workflow
element.
|
URI |
getURI()
Get the URI of this workflow element.
|
int |
hashCode() |
void |
setName(String name)
Sets the name of the
WorkflowBean . |
String |
toString() |
clone, cloneWorkflowBean, getTools, getUriTools
finalize, getClass, notify, notifyAll, wait, wait, wait
accept, clone
public AbstractNamed()
Named
WorkflowBean
with a random UUID as the name.public AbstractNamed(String name)
Named
WorkflowBean
with the specified name.name
- the name of the Named
WorkflowBean
. Must not be null
or an empty String.public int compareTo(Object o)
compareTo
in interface Comparable
public String getName()
Named
WorkflowBean
.public void setName(String name)
Named
WorkflowBean
.
The name must not be null
, not be an empty
String, and must not match the Named.INVALID_NAME
regular expression.protected void cloneInto(WorkflowBean clone, AbstractCloneable.Cloning cloning)
cloneInto
in class AbstractCloneable
public Collection<Annotation> getAnnotations()
Scufl2Tools.annotationsFor(Child)
public URI getURI()
URITools.uriForBean(WorkflowBean)
public URI getRelativeURI(WorkflowBean relativeTo)
URITools#relativeUriForBean(WorkflowBean,WorflowBean)
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.