public final class Operations
extends java.lang.Object
Operation
s. The inner classes of this class
all implement the Operation
interface. They are representatives
for the method calls on a Batch
. In addition Operations.Empty
represents
the empty operation which does nothing.Modifier and Type | Class and Description |
---|---|
static class |
Operations.AddNode
Representative of an add-node
Operation which calls
Batch.addNode(NodeId, Name, Name, String) when applied to a Batch . |
static class |
Operations.AddProperty
Representative of an add-property
Operation which calls
Batch.addProperty(NodeId, Name, QValue) or Batch.addProperty(NodeId, Name, QValue[])
depending on whether the property is multi valued or not when applied to a Batch . |
static class |
Operations.Empty
|
static class |
Operations.Move
Representative of a move
Operation which calls
Batch.move(NodeId, NodeId, Name) when applied to a Batch . |
static class |
Operations.Remove
|
static class |
Operations.ReorderNodes
Representative of a reorder-nodes
Operation which calls
Batch.reorderNodes(NodeId, NodeId, NodeId) when applied to a Batch . |
static class |
Operations.SetMixins
Representative of a set-mixin
Operation which calls
Batch.setMixins(NodeId, Name[]) when applied to a Batch . |
static class |
Operations.SetPrimaryType
Representative of a set-mixin
Operation which calls
Batch.setMixins(NodeId, Name[]) when applied to a Batch . |
static class |
Operations.SetTree |
static class |
Operations.SetValue
Representative of a set-value
Operation which calls
Batch.setValue(PropertyId, QValue) or Batch.setValue(PropertyId, QValue[])
depending on whether the property is multi valued or not when applied to a Batch . |
Modifier and Type | Method and Description |
---|---|
static Operation |
addNode(NodeId parentId,
Name nodeName,
Name nodetypeName,
java.lang.String uuid)
Factory method for creating an
Operations.AddNode operation. |
static Operation |
addProperty(NodeId parentId,
Name propertyName,
QValue value)
Factory method for creating an
Operations.AddProperty operation. |
static Operation |
addProperty(NodeId parentId,
Name propertyName,
QValue[] values)
Factory method for creating an
Operations.AddProperty operation. |
static Operation |
empty()
Factory method for creating an
Operations.Empty operation. |
static Operation |
move(NodeId srcNodeId,
NodeId destParentNodeId,
Name destName)
Factory method for creating a
Operations.Move operation. |
static Operation |
remove(ItemId itemId)
Factory method for creating a
Operations.Remove operation. |
static Operation |
reorderNodes(NodeId parentId,
NodeId srcNodeId,
NodeId beforeNodeId)
Factory method for creating a reorder-nodes
Operation for the given arguments. |
static Operation |
setMixins(NodeId nodeId,
Name[] mixinNodeTypeNames)
Factory method for creating a set-mixin
Operation for the given arguments. |
static Operation |
setPrimaryType(NodeId nodeId,
Name primaryTypeName)
Factory method for creating a set-primaryType
Operation for the given arguments. |
static Operation |
setTree(NodeId parentId,
Tree contentTree)
Factory method for creating an
Operations.SetTree operation. |
static Operation |
setValue(PropertyId propertyId,
QValue value)
Factory method for creating set-value
Operation for the given arguments. |
static Operation |
setValue(PropertyId propertyId,
QValue[] values)
Factory method for creating a set-value
Operation for the given arguments. |
public static Operation empty()
Operations.Empty
operation.public static Operation addNode(NodeId parentId, Name nodeName, Name nodetypeName, java.lang.String uuid)
Operations.AddNode
operation.parentId
- nodeName
- nodetypeName
- uuid
- Batch.addNode(NodeId, Name, Name, String)
public static Operation addProperty(NodeId parentId, Name propertyName, QValue value)
Operations.AddProperty
operation.parentId
- propertyName
- value
- Batch.addProperty(NodeId, Name, QValue)
public static Operation addProperty(NodeId parentId, Name propertyName, QValue[] values)
Operations.AddProperty
operation.parentId
- propertyName
- values
- Batch.addProperty(NodeId, Name, QValue[])
public static Operation move(NodeId srcNodeId, NodeId destParentNodeId, Name destName)
Operations.Move
operation.srcNodeId
- destParentNodeId
- destName
- Batch.move(NodeId, NodeId, Name)
public static Operation remove(ItemId itemId)
Operations.Remove
operation.itemId
- Batch.move(NodeId, NodeId, Name)
public static Operation reorderNodes(NodeId parentId, NodeId srcNodeId, NodeId beforeNodeId)
Operation
for the given arguments.parentId
- srcNodeId
- beforeNodeId
- Batch.reorderNodes(NodeId, NodeId, NodeId)
public static Operation setMixins(NodeId nodeId, Name[] mixinNodeTypeNames)
Operation
for the given arguments.nodeId
- mixinNodeTypeNames
- Batch.setMixins(NodeId, Name[])
public static Operation setPrimaryType(NodeId nodeId, Name primaryTypeName)
Operation
for the given arguments.nodeId
- primaryTypeName
- Batch.setPrimaryType(NodeId, Name)
public static Operation setValue(PropertyId propertyId, QValue value)
Operation
for the given arguments.propertyId
- value
- Batch.setValue(PropertyId, QValue)
public static Operation setValue(PropertyId propertyId, QValue[] values)
Operation
for the given arguments.propertyId
- values
- Batch.setValue(PropertyId, QValue[])
public static Operation setTree(NodeId parentId, Tree contentTree)
Operations.SetTree
operation.Copyright © 2010 - 2020 Adobe. All Rights Reserved