Class ItemInfoBuilder
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.ItemInfoBuilder
-
public final class ItemInfoBuilder extends java.lang.Object
Utility class providing aItemInfoBuilder.NodeInfoBuilder
for buildingNodeInfo
. Example usage:ItemInfoBuilder.nodeInfoBuilder() .createNodeInfo("node1") .createPropertyInfo("prop1", "value1").build() .createPropertyInfo("prop2") .addValue(1.2) .addValue(2.3) .build() .build() .createNodeInfo("node2") .setPrimaryType(NameConstants.NT_BASE) .addMixin(NameConstants.MIX_LOCKABLE) .createPropertyInfo("prop3") .setType(PropertyType.BINARY) .build() .build() .build();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ItemInfoBuilder.Listener
A listener for receiving notifications about items built by the builders in this class.static class
ItemInfoBuilder.NodeInfoBuilder
Builder forNodeInfo
s.static class
ItemInfoBuilder.PropertyInfoBuilder
Builder forPropertyInfo
s.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ItemInfoBuilder.NodeInfoBuilder
nodeInfoBuilder()
Same asnodeInfoBuilder("", null)
static ItemInfoBuilder.NodeInfoBuilder
nodeInfoBuilder(java.lang.String localName)
Same asnodeInfoBuilder(localName, null)
static ItemInfoBuilder.NodeInfoBuilder
nodeInfoBuilder(java.lang.String localName, ItemInfoBuilder.Listener listener)
Return aItemInfoBuilder.NodeInfoBuilder
for a node with a givenlocalName
.static ItemInfoBuilder.NodeInfoBuilder
nodeInfoBuilder(ItemInfoBuilder.Listener listener)
Same asnodeInfoBuilder("", listener)
static ItemInfoBuilder.NodeInfoBuilder
nodeInfoBuilder(Name name, ItemInfoBuilder.Listener listener)
Return aItemInfoBuilder.NodeInfoBuilder
for a node with a givenname
.
-
-
-
Method Detail
-
nodeInfoBuilder
public static ItemInfoBuilder.NodeInfoBuilder nodeInfoBuilder(ItemInfoBuilder.Listener listener)
Same asnodeInfoBuilder("", listener)
- Parameters:
listener
-- Returns:
-
nodeInfoBuilder
public static ItemInfoBuilder.NodeInfoBuilder nodeInfoBuilder()
Same asnodeInfoBuilder("", null)
- Returns:
-
nodeInfoBuilder
public static ItemInfoBuilder.NodeInfoBuilder nodeInfoBuilder(java.lang.String localName)
Same asnodeInfoBuilder(localName, null)
- Parameters:
localName
-- Returns:
-
nodeInfoBuilder
public static ItemInfoBuilder.NodeInfoBuilder nodeInfoBuilder(java.lang.String localName, ItemInfoBuilder.Listener listener)
Return aItemInfoBuilder.NodeInfoBuilder
for a node with a givenlocalName
.- Parameters:
localName
- localName of the nodelistener
-ItemInfoBuilder.Listener
to receive notifications aboutNodeInfo
s,PropertyInfo
s andChildInfo
s built.- Returns:
-
nodeInfoBuilder
public static ItemInfoBuilder.NodeInfoBuilder nodeInfoBuilder(Name name, ItemInfoBuilder.Listener listener)
Return aItemInfoBuilder.NodeInfoBuilder
for a node with a givenname
.- Parameters:
name
- name of the nodelistener
-ItemInfoBuilder.Listener
to receive notifications aboutNodeInfo
s,PropertyInfo
s andChildInfo
s built.- Returns:
-
-