org.chromattic.common
Class JCR
java.lang.Object
org.chromattic.common.JCR
public class JCR
- extends java.lang.Object
- Version:
- $Revision$
- Author:
- Julien Viet
|
Constructor Summary |
JCR()
|
|
Method Summary |
static java.util.Iterator<javax.jcr.Node> |
adapt(javax.jcr.NodeIterator iterator)
|
static java.util.Iterator<javax.jcr.Property> |
adapt(javax.jcr.PropertyIterator iterator)
|
static boolean |
equals(javax.jcr.Node a,
javax.jcr.Node b)
Return true if the two nodes are equals with the meaning:
two null nodes are equals
two non null nodes are equals if
the are originated from the same session
they have the same id when they are referenceable otherwise they have the same path
|
static javax.jcr.nodetype.PropertyDefinition |
getPropertyDefinition(javax.jcr.Node node,
java.lang.String propertyName)
|
static javax.jcr.nodetype.PropertyDefinition |
getPropertyDefinition(javax.jcr.nodetype.NodeType nodeType,
java.lang.String propertyName)
|
static boolean |
hasMixin(javax.jcr.Node node,
java.lang.String mixinTypeName)
|
static java.lang.String |
qualify(java.lang.String prefix,
java.lang.String localName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JCR
public JCR()
adapt
public static java.util.Iterator<javax.jcr.Property> adapt(javax.jcr.PropertyIterator iterator)
adapt
public static java.util.Iterator<javax.jcr.Node> adapt(javax.jcr.NodeIterator iterator)
equals
public static boolean equals(javax.jcr.Node a,
javax.jcr.Node b)
throws javax.jcr.RepositoryException
- Return true if the two nodes are equals with the meaning:
- two null nodes are equals
- two non null nodes are equals if
- the are originated from the same session
- they have the same id when they are referenceable otherwise they have the same path
- Parameters:
a - the node ab - the node b
- Returns:
- true if the two nodes are equals
- Throws:
javax.jcr.RepositoryException - any repository exception
hasMixin
public static boolean hasMixin(javax.jcr.Node node,
java.lang.String mixinTypeName)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
getPropertyDefinition
public static javax.jcr.nodetype.PropertyDefinition getPropertyDefinition(javax.jcr.nodetype.NodeType nodeType,
java.lang.String propertyName)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
getPropertyDefinition
public static javax.jcr.nodetype.PropertyDefinition getPropertyDefinition(javax.jcr.Node node,
java.lang.String propertyName)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
qualify
public static java.lang.String qualify(java.lang.String prefix,
java.lang.String localName)
Copyright © 2014 eXo Platform SAS. All Rights Reserved.