public static class Operations.AddProperty extends Object implements Operation
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
.Modifier and Type | Field and Description |
---|---|
protected boolean |
isMultivalued |
protected NodeId |
parentId |
protected Name |
propertyName |
protected QValue[] |
values |
Constructor and Description |
---|
Operations.AddProperty(NodeId parentId,
Name propertyName,
QValue value)
Create a new add-property
Operation for the given arguments. |
Operations.AddProperty(NodeId parentId,
Name propertyName,
QValue[] values)
Create a new add-property
Operation for the given arguments. |
protected final NodeId parentId
protected final Name propertyName
protected final QValue[] values
protected final boolean isMultivalued
public Operations.AddProperty(NodeId parentId, Name propertyName, QValue value)
Operation
for the given arguments.parentId
- propertyName
- value
- Batch.addProperty(NodeId, Name, QValue)
public Operations.AddProperty(NodeId parentId, Name propertyName, QValue[] values)
Operation
for the given arguments.parentId
- propertyName
- values
- Batch.addProperty(NodeId, Name, QValue[])
public void apply(Batch batch) throws javax.jcr.RepositoryException
Batch
public boolean equals(Operations.AddProperty other)
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.