public interface NodeFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
JCR_PRIMARY_TYPE |
| Modifier and Type | Method and Description |
|---|---|
void |
createIteratorFor(javax.jcr.Node parent,
List<javax.jcr.Node> childNodes)
Creates a node iterator for the given child nodes in relation with their parent.
|
javax.jcr.Property |
createMultiValuedProperty(javax.jcr.Node parent,
String name,
String[] propertyValues) |
javax.jcr.Node |
createNode(javax.jcr.Node parent,
String name)
Creates a mock node as a child of the given parent
|
javax.jcr.Node |
createNode(javax.jcr.Node parent,
String name,
javax.jcr.nodetype.NodeType nodeType) |
javax.jcr.Node |
createNode(javax.jcr.Node parentNode,
String nodeName,
String nodeTypeName) |
javax.jcr.Node |
createNode(String name)
Creates a mock node
|
javax.jcr.Property |
createProperty(javax.jcr.Node parent,
String name,
String propertyValue,
int propertyType) |
void |
createPropertyIteratorFor(javax.jcr.Node parent,
List<javax.jcr.Property> propertyList) |
javax.jcr.Value |
createValueFor(javax.jcr.Property property,
String valueStr,
int valueType) |
static final String JCR_PRIMARY_TYPE
javax.jcr.Property createProperty(javax.jcr.Node parent,
String name,
String propertyValue,
int propertyType)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionjavax.jcr.Property createMultiValuedProperty(javax.jcr.Node parent,
String name,
String[] propertyValues)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionjavax.jcr.Node createNode(javax.jcr.Node parentNode,
String nodeName,
String nodeTypeName)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionjavax.jcr.Node createNode(javax.jcr.Node parent,
String name)
throws javax.jcr.RepositoryException
parent - Parent for the new nodename - Node namejavax.jcr.RepositoryException - If a repository error happensjavax.jcr.Node createNode(String name) throws javax.jcr.RepositoryException
name - Node namejavax.jcr.RepositoryException - If a repository error happensvoid createIteratorFor(javax.jcr.Node parent,
List<javax.jcr.Node> childNodes)
throws javax.jcr.RepositoryException
parent - Parent node for the children and the iterator. Must not be null.childNodes - Child nodes to iterate throughjavax.jcr.RepositoryException - If a repository error happensvoid createPropertyIteratorFor(javax.jcr.Node parent,
List<javax.jcr.Property> propertyList)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionjavax.jcr.Value createValueFor(javax.jcr.Property property,
String valueStr,
int valueType)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionjavax.jcr.Node createNode(javax.jcr.Node parent,
String name,
javax.jcr.nodetype.NodeType nodeType)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionCopyright © 2014 Tacit Knowledge. All Rights Reserved.