|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.jcr.JcrConverter
public final class JcrConverter
Utility class providing methods for converting various entities from/to their respective representation in JCR/CMIS.
Method Summary | |
---|---|
static PropertyData<?> |
convert(javax.jcr.Property jcrProperty)
Convert a JCR Property to a CMIS PropertyData . |
static boolean |
isValidJcrName(String name)
Checks if the given name is valid a valid JCR name |
static void |
removeProperty(javax.jcr.Node node,
PropertyData<?> propertyData)
Remove a property from a JCR node |
static void |
setProperty(javax.jcr.Node node,
PropertyData<?> propertyData)
Set a property on a JCR node. |
static String |
toJcrName(String cmisName)
Escapes all illegal JCR name characters of a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String toJcrName(String cmisName)
simplename ::= onecharsimplename | twocharsimplename | threeormorecharname onecharsimplename ::= (* Any Unicode character except: '.', '/', ':', '[', ']', '*', '|' or any whitespace character *) twocharsimplename ::= '.' onecharsimplename | onecharsimplename '.' | onecharsimplename onecharsimplename threeormorecharname ::= nonspace string nonspace string ::= char | string char char ::= nonspace | ' ' nonspace ::= (* Any Unicode character except: '/', ':', '[', ']', '*', '|' or any whitespace character *)
cmisName
- the name to escape
public static boolean isValidJcrName(String name)
name
- the name to check
true
if the name is valid, false
otherwise.public static PropertyData<?> convert(javax.jcr.Property jcrProperty) throws javax.jcr.RepositoryException
Property
to a CMIS PropertyData
.
jcrProperty
-
javax.jcr.RepositoryException
public static void setProperty(javax.jcr.Node node, PropertyData<?> propertyData) throws javax.jcr.RepositoryException
node
- the node to set the propertypropertyData
- the property to set
javax.jcr.RepositoryException
public static void removeProperty(javax.jcr.Node node, PropertyData<?> propertyData) throws javax.jcr.RepositoryException
node
- the node from which to remove the propertypropertyData
- the property to remove
javax.jcr.RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |