public final class ItemInfoBuilder extends Object
ItemInfoBuilder.NodeInfoBuilder
for building NodeInfo
.
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();
Modifier and Type | Class and Description |
---|---|
static interface |
ItemInfoBuilder.Listener
A listener for receiving notifications about items built by the builders in this class.
|
static class |
ItemInfoBuilder.NodeInfoBuilder
Builder for
NodeInfo s. |
static class |
ItemInfoBuilder.PropertyInfoBuilder
Builder for
PropertyInfo s. |
Modifier and Type | Method and Description |
---|---|
static ItemInfoBuilder.NodeInfoBuilder |
nodeInfoBuilder()
Same as
nodeInfoBuilder("", null) |
static ItemInfoBuilder.NodeInfoBuilder |
nodeInfoBuilder(ItemInfoBuilder.Listener listener)
Same as
nodeInfoBuilder("", listener) |
static ItemInfoBuilder.NodeInfoBuilder |
nodeInfoBuilder(Name name,
ItemInfoBuilder.Listener listener)
Return a
ItemInfoBuilder.NodeInfoBuilder for a node with a given name . |
static ItemInfoBuilder.NodeInfoBuilder |
nodeInfoBuilder(String localName)
Same as
nodeInfoBuilder(localName, null) |
static ItemInfoBuilder.NodeInfoBuilder |
nodeInfoBuilder(String localName,
ItemInfoBuilder.Listener listener)
Return a
ItemInfoBuilder.NodeInfoBuilder for a node with a given localName . |
public static ItemInfoBuilder.NodeInfoBuilder nodeInfoBuilder(ItemInfoBuilder.Listener listener)
nodeInfoBuilder("", listener)
listener
- public static ItemInfoBuilder.NodeInfoBuilder nodeInfoBuilder()
nodeInfoBuilder("", null)
public static ItemInfoBuilder.NodeInfoBuilder nodeInfoBuilder(String localName)
nodeInfoBuilder(localName, null)
localName
- public static ItemInfoBuilder.NodeInfoBuilder nodeInfoBuilder(String localName, ItemInfoBuilder.Listener listener)
ItemInfoBuilder.NodeInfoBuilder
for a node with a given localName
.localName
- localName of the nodelistener
- ItemInfoBuilder.Listener
to receive notifications about NodeInfo
s,
PropertyInfo
s and ChildInfo
s built.public static ItemInfoBuilder.NodeInfoBuilder nodeInfoBuilder(Name name, ItemInfoBuilder.Listener listener)
ItemInfoBuilder.NodeInfoBuilder
for a node with a given name
.name
- name of the nodelistener
- ItemInfoBuilder.Listener
to receive notifications about NodeInfo
s,
PropertyInfo
s and ChildInfo
s built.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.