public final class ConsoleHelper extends Object
Modifier | Constructor and Description |
---|---|
private |
ConsoleHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
convertSingleToMultipleProperty(Node node,
String propertyName)
Helper to convert a single-valued property to a multi-valued property.
|
static void |
setProperty(Node node,
String name,
Object values)
Helper to set ambiguous object values from a node property
|
private ConsoleHelper()
public static void setProperty(Node node, String name, Object values) throws RepositoryException
node
- the nodename
- the property namevalues
- the property values as String[] or Value[]RepositoryException
- if an error occurredpublic static boolean convertSingleToMultipleProperty(Node node, String propertyName) throws RepositoryException
node
- the node holding the propertypropertyName
- the property's nameRepositoryException
- if an error occurred