org.apache.jackrabbit.mk.model
Interface NodeBuilder


public interface NodeBuilder

Builder interface for constructing new node states.


Method Summary
 NodeState getNodeState()
          Returns an immutable node state that matches the current state of the builder.
 void setChildNode(String name, NodeState childNode)
          Sets or removes the named child node.
 void setProperty(String name, String encodedValue)
          Sets or removes the named property.
 

Method Detail

setProperty

void setProperty(String name,
                 String encodedValue)
Sets or removes the named property.

Parameters:
name - property name
encodedValue - encoded value of the property, or null to remove the named property

setChildNode

void setChildNode(String name,
                  NodeState childNode)
Sets or removes the named child node.

Parameters:
name - child node name
childNode - new child node state, or null to remove the named child node

getNodeState

NodeState getNodeState()
Returns an immutable node state that matches the current state of the builder.

Returns:
immutable node state


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.