public class BatchId extends Element
Modifier and Type | Field and Description |
---|---|
static ElementKey<java.lang.String,BatchId> |
KEY
The key for this element.
|
Constructor and Description |
---|
BatchId()
Default mutable constructor.
|
BatchId(java.lang.String id)
Constructs a new instance with the given value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getId()
Returns the value.
|
static java.lang.String |
getIdFrom(Element element)
Convenience method for getting a batchId from
an element if it's there.
|
int |
hashCode() |
boolean |
hasId()
Returns whether it has the value.
|
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
|
BatchId |
setId(java.lang.String id)
Sets the value.
|
java.lang.String |
toString() |
adapt, adapt, addElement, addElement, addElement, clear, createElement, createElement, eq, getAttributeCount, getAttributeIterator, getAttributeIterator, getAttributeValue, getAttributeValue, getDefaultKey, getElement, getElement, getElementCount, getElementId, getElementIterator, getElementIterator, getElementKey, getElements, getElements, getElementSet, getElementSet, getElementValue, getElementValue, getTextValue, getTextValue, hasAttribute, hasAttribute, hasElement, hasElement, hasTextValue, isLocked, lock, narrow, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, sameClassAs, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, validate, visit
public static final ElementKey<java.lang.String,BatchId> KEY
public BatchId()
public BatchId(java.lang.String id)
id
- value.public static void registerMetadata(MetadataRegistry registry)
public static java.lang.String getIdFrom(Element element)
element
- element to get id from.null
if it's not defined.public java.lang.String getId()
public BatchId setId(java.lang.String id)
id
- value or null
to resetpublic boolean hasId()