|
||||||||||
| 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 NodeInfos. Use one of the ItemInfoBuilder.nodeInfoBuilder()
methods to create instances of this class.
| Method Summary | |
|---|---|
ItemInfoBuilder.NodeInfoBuilder |
addMixin(org.apache.jackrabbit.spi.Name name)
Add a mixin type |
ItemInfoBuilder.NodeInfoBuilder |
addNodeInfo(org.apache.jackrabbit.spi.NodeInfo nodeInfo)
Add a NodeInfo |
ItemInfoBuilder.NodeInfoBuilder |
addPropertyInfo(org.apache.jackrabbit.spi.PropertyInfo propertyInfo)
Add a PropertyInfo |
ItemInfoBuilder.NodeInfoBuilder |
build()
Build the NodeInfo. |
ItemInfoBuilder.NodeInfoBuilder |
createNodeInfo(String name)
Create a new child NodeInfo on this NodeInfo with a given name. |
ItemInfoBuilder.PropertyInfoBuilder |
createPropertyInfo(String name)
Create a new child PropertyInfo with a given
name on this NodeInfo. |
ItemInfoBuilder.PropertyInfoBuilder |
createPropertyInfo(String name,
String value)
Create a new child PropertyInfo with a given name and a given
value of type String on this NodeInfo. |
org.apache.jackrabbit.spi.NodeInfo |
getNodeInfo()
Returns the NodeInfo which has been built by this builder. |
ItemInfoBuilder.NodeInfoBuilder |
includeChildInfos(boolean include)
Whether the ChildInfos should be included or not. |
ItemInfoBuilder.NodeInfoBuilder |
setIndex(int index)
Set the index. |
ItemInfoBuilder.NodeInfoBuilder |
setPrimaryType(org.apache.jackrabbit.spi.Name name)
Set the name of the primary type. |
| 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
RepositoryExceptionpublic ItemInfoBuilder.PropertyInfoBuilder createPropertyInfo(String name)
PropertyInfo with a given
name on this NodeInfo.
name -
thispublic ItemInfoBuilder.NodeInfoBuilder createNodeInfo(String name)
NodeInfo on this NodeInfo with a given name.
name -
thispublic ItemInfoBuilder.NodeInfoBuilder setIndex(int index)
index -
NodeInfo.getIndex()public ItemInfoBuilder.NodeInfoBuilder setPrimaryType(org.apache.jackrabbit.spi.Name name)
name -
NodeInfo.getNodetype()public ItemInfoBuilder.NodeInfoBuilder addMixin(org.apache.jackrabbit.spi.Name name)
name -
NodeInfo.getMixins()public ItemInfoBuilder.NodeInfoBuilder includeChildInfos(boolean include)
ChildInfos 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 org.apache.jackrabbit.spi.NodeInfo getNodeInfo()
NodeInfo which has been built by this builder.
IllegalStateException - if build() has not been called before.public ItemInfoBuilder.NodeInfoBuilder addPropertyInfo(org.apache.jackrabbit.spi.PropertyInfo propertyInfo)
PropertyInfo
propertyInfo -
thispublic ItemInfoBuilder.NodeInfoBuilder addNodeInfo(org.apache.jackrabbit.spi.NodeInfo nodeInfo)
NodeInfo
nodeInfo -
this
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||