public class DocViewProperty extends Object
prop:= [ "{" type "}" ] ( value | "[" [ value { "," value } ] "]" )| Constructor and Description |
|---|
DocViewProperty(DocViewProperty p) |
DocViewProperty(String name,
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 String |
format(Property prop)
Formats the given jcr property to the enhanced docview syntax.
|
static 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(String name,
String value)
Parses a enhanced docview property string and returns the property.
|
public DocViewProperty(DocViewProperty p)
public DocViewProperty(String name, String[] values, boolean multi, int type)
name - name of the propertyvalues - values.multi - multiple flagtype - type of the propertyIllegalArgumentException - if single value property and not
exactly 1 value is given.public static DocViewProperty parse(String name, String value)
name - name of the propertyvalue - (attribute) valuepublic static String format(Property prop) throws RepositoryException
prop - the jcr propertyRepositoryException - if a repository error occurspublic static 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 - 2017 Adobe Systems Incorporated. All Rights Reserved"