public static class ItemInfoBuilder.NodeInfoBuilder extends Object
NodeInfo
s. Use one of the ItemInfoBuilder.nodeInfoBuilder()
methods to create instances of this class.public ItemInfoBuilder.PropertyInfoBuilder createPropertyInfo(String localName, String value) throws RepositoryException
PropertyInfo
with a given localName
and a given
value
of type String
on this NodeInfo
.localName
- value
- this
RepositoryException
public ItemInfoBuilder.PropertyInfoBuilder createPropertyInfo(String localName)
localName
- this
public ItemInfoBuilder.PropertyInfoBuilder createPropertyInfo()
PropertyInfo
on this NodeInfo
.this
public ItemInfoBuilder.NodeInfoBuilder createNodeInfo(String localName)
NodeInfo
on this NodeInfo with a given localName
.localName
- this
public ItemInfoBuilder.NodeInfoBuilder createNodeInfo()
NodeInfo
on this NodeInfo.this
public ItemInfoBuilder.NodeInfoBuilder setName(Name name)
name
of the nodename
- public ItemInfoBuilder.NodeInfoBuilder setName(String localName)
localName
of the nodelocalName
- public ItemInfoBuilder.NodeInfoBuilder setNamespace(String namespace)
namespace
- public ItemInfoBuilder.NodeInfoBuilder setIndex(int index)
index
- NodeInfo.getIndex()
public ItemInfoBuilder.NodeInfoBuilder setUUID(String uuid)
uuid
- public ItemInfoBuilder.NodeInfoBuilder setParentPath(Path parentPath)
parentPath
- public ItemInfoBuilder.NodeInfoBuilder setPrimaryType(Name name)
name
- NodeInfo.getNodetype()
public ItemInfoBuilder.NodeInfoBuilder addMixin(Name name)
name
- NodeInfo.getMixins()
public ItemInfoBuilder.NodeInfoBuilder includeChildInfos(boolean include)
ChildInfo
s should be included or not.include
- NodeInfo.getChildInfos()
public ItemInfoBuilder.NodeInfoBuilder build() throws RepositoryException
NodeInfo
. If a ItemInfoBuilder.Listener
is associated with this
instance, then its ItemInfoBuilder.Listener.createChildInfos(NodeId, Iterator)
and
its ItemInfoBuilder.Listener.createNodeInfo(NodeInfo)
methods are called.RepositoryException
IllegalStateException
- if build has been called beforepublic ItemInfoBuilder.NodeInfoBuilder getParent()
public NodeInfo getNodeInfo()
NodeInfo
which has been built by this builder.IllegalStateException
- if build()
has not been called before.public ItemInfoBuilder.NodeInfoBuilder addPropertyInfo(PropertyInfo propertyInfo)
PropertyInfo
propertyInfo
- this
public ItemInfoBuilder.NodeInfoBuilder addNodeInfo(NodeInfo nodeInfo)
NodeInfo
nodeInfo
- this
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.