public class DialogRewriteUtils
extends java.lang.Object
| Constructor and Description |
|---|
DialogRewriteUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Property |
copyProperty(Node source,
java.lang.String relPropertyPath,
Node destination,
java.lang.String name)
Copies a property from a source to a destination node.
|
static boolean |
hasPrimaryType(Node node,
java.lang.String typeName)
Checks if a node has a certain primary type.
|
static boolean |
hasType(Node node,
java.lang.String type)
Checks if a node has a certain type.
|
static boolean |
hasXtype(Node node,
java.lang.String xtype)
Checks if a node has a certain xtype.
|
static void |
rename(Node node)
Renames the specified node to a temporary name.
|
public static boolean hasXtype(Node node,
java.lang.String xtype)
throws RepositoryException
node - The node to checkxtype - The xtype to check or null to check if the node has no xtypeRepositoryExceptionpublic static boolean hasType(Node node,
java.lang.String type)
throws RepositoryException
node - The node to checktype - The type to check or null to check if the node has no typeRepositoryExceptionpublic static boolean hasPrimaryType(Node node,
java.lang.String typeName)
throws RepositoryException
node - The node to checktypeName - The name of the primary type to checkRepositoryExceptionpublic static void rename(Node node)
throws RepositoryException
node - The node to be renamedRepositoryExceptionpublic static Property copyProperty(Node source,
java.lang.String relPropertyPath,
Node destination,
java.lang.String name)
throws RepositoryException
source - The source noderelPropertyPath - The relative path to the property to be copieddestination - The destination nodename - The name for the copy of the propertyRepositoryExceptionCopyright © 2011-2015 Adobe Systems Incorporated. All Rights Reserved.