org.crsh.jcr
Class JCRUtils
java.lang.Object
org.crsh.jcr.JCRUtils
-
public class JCRUtils
- extends Object
-
Method Summary |
static String |
decodeName(String name)
|
static String |
encodeName(String name)
|
static javax.jcr.nodetype.PropertyDefinition |
findPropertyDefinition(javax.jcr.Node node, String propertyName)
|
static javax.jcr.Property |
getProperty(javax.jcr.Node node, String propertyName)
|
static javax.jcr.nodetype.PropertyDefinition |
getPropertyDefinition(javax.jcr.nodetype.NodeType nodeType, String propertyName)
|
static boolean |
isJCRPropertyType(Object value)
|
static void |
setProperty(javax.jcr.Node node, String propertyName, boolean value)
|
static void |
setProperty(javax.jcr.Node node, String propertyName, javax.jcr.Value value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PATH
public static final int PATH
-
- See Also:
- Constant Field Values
STRING
public static final int STRING
-
- See Also:
- Constant Field Values
DATE
public static final int DATE
-
- See Also:
- Constant Field Values
DOUBLE
public static final int DOUBLE
-
- See Also:
- Constant Field Values
LONG
public static final int LONG
-
- See Also:
- Constant Field Values
BOOLEAN
public static final int BOOLEAN
-
- See Also:
- Constant Field Values
REFERENCE
public static final int REFERENCE
-
- See Also:
- Constant Field Values
BINARY
public static final int BINARY
-
- See Also:
- Constant Field Values
JCRUtils
private JCRUtils()
getProperty
public static javax.jcr.Property getProperty(javax.jcr.Node node,
String propertyName)
throws javax.jcr.RepositoryException
-
- Throws:
javax.jcr.RepositoryException
setProperty
public static void setProperty(javax.jcr.Node node,
String propertyName,
boolean value)
throws javax.jcr.RepositoryException
-
- Throws:
javax.jcr.RepositoryException
setProperty
public static void setProperty(javax.jcr.Node node,
String propertyName,
javax.jcr.Value value)
throws javax.jcr.RepositoryException
-
- Throws:
javax.jcr.RepositoryException
isJCRPropertyType
public static boolean isJCRPropertyType(Object value)
-
encodeName
public static String encodeName(String name)
-
decodeName
public static String decodeName(String name)
-
getPropertyDefinition
public static javax.jcr.nodetype.PropertyDefinition getPropertyDefinition(javax.jcr.nodetype.NodeType nodeType,
String propertyName)
throws javax.jcr.RepositoryException
-
- Throws:
javax.jcr.RepositoryException
findPropertyDefinition
public static javax.jcr.nodetype.PropertyDefinition findPropertyDefinition(javax.jcr.Node node,
String propertyName)
throws javax.jcr.RepositoryException
-
- Throws:
javax.jcr.RepositoryException
Copyright © 2014 eXo Platform SAS. All Rights Reserved.