public class DocViewProperty
extends java.lang.Object
prop:= [ "{" type "}" ] ( value | "[" [ value { "," value } ] "]" )| Constructor and Description |
|---|
DocViewProperty(DocViewProperty p) |
DocViewProperty(java.lang.String name,
java.lang.String[] values,
boolean multi,
int type)
Creates a new property.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(Node node)
Sets this property on the given node
|
static java.lang.String |
format(Property prop)
Formats the given jcr property to the enhanced docview syntax.
|
static java.lang.String |
format(Property prop,
boolean sort)
Formats the given jcr property to the enhanced docview syntax.
|
static boolean |
isAmbiguous(Property prop)
Checks if the type of the given property is ambiguous in respect to it's
property definition.
|
static DocViewProperty |
parse(java.lang.String name,
java.lang.String value)
Parses a enhanced docview property string and returns the property.
|
public DocViewProperty(DocViewProperty p)
public DocViewProperty(java.lang.String name,
java.lang.String[] values,
boolean multi,
int type)
name - name of the propertyvalues - values.multi - multiple flagtype - type of the propertyjava.lang.IllegalArgumentException - if single value property and not
exactly 1 value is given.public static DocViewProperty parse(java.lang.String name, java.lang.String value)
name - name of the propertyvalue - (attribute) valuepublic static java.lang.String format(Property prop)
throws RepositoryException
prop - the jcr propertyRepositoryException - if a repository error occurspublic static java.lang.String format(Property prop,
boolean sort)
throws RepositoryException
prop - the jcr propertysort - if true multivalue properties are sortedRepositoryException - if a repository error occurspublic static boolean isAmbiguous(Property prop)
throws RepositoryException
prop - the propertyRepositoryException - if a repository error occurspublic boolean apply(Node node)
throws RepositoryException
node - the nodetrue if the value was modified.RepositoryException - if a repository error occurs"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"