|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.spi.commons.ItemInfoBuilder.NodeInfoBuilder
public static class ItemInfoBuilder.NodeInfoBuilder
Builder for NodeInfo
s. Use one of the ItemInfoBuilder.nodeInfoBuilder()
methods to create instances of this class.
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public ItemInfoBuilder.PropertyInfoBuilder createPropertyInfo(String name, String value) throws RepositoryException
PropertyInfo
with a given name
and a given
value
of type String
on this NodeInfo
.
name
- value
-
this
RepositoryException
public ItemInfoBuilder.PropertyInfoBuilder createPropertyInfo(String name)
PropertyInfo
with a given
name
on this NodeInfo
.
name
-
this
public ItemInfoBuilder.NodeInfoBuilder createNodeInfo(String name)
NodeInfo
on this NodeInfo with a given name
.
name
-
this
public ItemInfoBuilder.NodeInfoBuilder setIndex(int index)
index
-
NodeInfo.getIndex()
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 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |