public class DocViewProperty extends Object
prop:= [ "{" type "}" ] ( value | "[" [ value { "," value } ] "]" )| Modifier and Type | Field and Description |
|---|---|
boolean |
isMulti
indicates a MV property
|
boolean |
isRef
indicates a binary ref property
|
String |
name
name of the property
|
int |
type
type of this property (can be undefined)
|
String[] |
values
value(s) of the property.
|
| Constructor and Description |
|---|
DocViewProperty(String name,
String[] values,
boolean multi,
int type)
Creates a new property.
|
DocViewProperty(String name,
String[] values,
boolean multi,
int type,
boolean ref) |
| 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,
boolean useBinaryReferences)
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 final String name
public final String[] values
public final boolean isMulti
public final int type
public final boolean isRef
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, boolean useBinaryReferences) 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"