public class MockNodeFactory extends Object implements NodeFactory
JCR_PRIMARY_TYPE| Constructor and Description |
|---|
MockNodeFactory() |
| 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) |
public javax.jcr.Node createNode(javax.jcr.Node parentNode,
String nodeName,
String nodeTypeName)
throws javax.jcr.RepositoryException
createNode in interface NodeFactoryjavax.jcr.RepositoryExceptionpublic javax.jcr.Property createProperty(javax.jcr.Node parent,
String name,
String propertyValue,
int propertyType)
throws javax.jcr.RepositoryException
createProperty in interface NodeFactoryjavax.jcr.RepositoryExceptionpublic javax.jcr.Node createNode(javax.jcr.Node parent,
String name,
javax.jcr.nodetype.NodeType nodeType)
throws javax.jcr.RepositoryException
createNode in interface NodeFactoryjavax.jcr.RepositoryExceptionpublic javax.jcr.Node createNode(javax.jcr.Node parent,
String name)
throws javax.jcr.RepositoryException
NodeFactorycreateNode in interface NodeFactoryparent - Parent for the new nodename - Node namejavax.jcr.RepositoryException - If a repository error happenspublic javax.jcr.Node createNode(String name) throws javax.jcr.RepositoryException
NodeFactorycreateNode in interface NodeFactoryname - Node namejavax.jcr.RepositoryException - If a repository error happenspublic javax.jcr.Property createMultiValuedProperty(javax.jcr.Node parent,
String name,
String[] propertyValues)
throws javax.jcr.RepositoryException
createMultiValuedProperty in interface NodeFactoryjavax.jcr.RepositoryExceptionpublic void createIteratorFor(javax.jcr.Node parent,
List<javax.jcr.Node> childNodes)
throws javax.jcr.RepositoryException
NodeFactorycreateIteratorFor in interface NodeFactoryparent - Parent node for the children and the iterator. Must not be null.childNodes - Child nodes to iterate throughjavax.jcr.RepositoryException - If a repository error happenspublic void createPropertyIteratorFor(javax.jcr.Node parent,
List<javax.jcr.Property> propertyList)
throws javax.jcr.RepositoryException
createPropertyIteratorFor in interface NodeFactoryjavax.jcr.RepositoryExceptionpublic javax.jcr.Value createValueFor(javax.jcr.Property property,
String valueStr,
int valueType)
throws javax.jcr.RepositoryException
createValueFor in interface NodeFactoryjavax.jcr.RepositoryExceptionCopyright © 2014 Tacit Knowledge. All Rights Reserved.