public class BatchOperation extends Element
Modifier and Type | Field and Description |
---|---|
static ElementKey<java.lang.Void,BatchOperation> |
KEY
The key for this element.
|
static AttributeKey<BatchOperationType> |
TYPE
The operation type.
|
Constructor and Description |
---|
BatchOperation()
Default mutable constructor.
|
BatchOperation(BatchOperationType type)
Constructs a new instance with the given operation type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
BatchOperationType |
getType()
Returns the operation type.
|
int |
hashCode() |
boolean |
hasType()
Returns whether it has the operation type.
|
static void |
registerMetadata(MetadataRegistry registry)
Registers the metadata for this element.
|
BatchOperation |
setType(BatchOperationType type)
Sets the operation type.
|
java.lang.String |
toString() |
addElement, addElement, addElement, clear, createElement, createElement, 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, removeAttribute, removeAttribute, removeAttributeValue, removeAttributeValue, removeElement, removeElement, removeElement, removeElement, replaceElement, resolve, resolve, setAttributeValue, setAttributeValue, setElement, setElement, setElement, setTextValue, visit
public static final ElementKey<java.lang.Void,BatchOperation> KEY
public static final AttributeKey<BatchOperationType> TYPE
public BatchOperation()
public BatchOperation(BatchOperationType type)
type
- operation type.public static void registerMetadata(MetadataRegistry registry)
public BatchOperationType getType()
public BatchOperation setType(BatchOperationType type)
type
- operation type or null
to resetpublic boolean hasType()