public class Namespaces extends java.lang.Object implements NamespaceConstants
NAMESPACE_OAK, NAMESPACE_REP, NAMESPACE_SV, NAMESPACE_XMLNS, NAMESPACES_PATH, PREFIX_OAK, PREFIX_REP, PREFIX_SV, PREFIX_XMLNS, REP_NAMESPACES, REP_NSDATA, REP_PREFIXES, REP_URIS, RESERVED_PREFIXES, RESERVED_URIS
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
addCustomMapping(NodeBuilder namespaces,
java.lang.String uri,
java.lang.String prefixHint) |
static void |
buildIndexNode(NodeBuilder namespaces) |
static NodeBuilder |
createStandardMappings(NodeBuilder system) |
static java.lang.String |
encodeUri(java.lang.String uri)
encodes the uri value to be used as a property
|
static java.util.Map<java.lang.String,java.lang.String> |
getNamespaceMap(Tree root) |
static java.lang.String |
getNamespacePrefix(Tree root,
java.lang.String uri) |
static java.lang.String |
getNamespaceURI(Tree root,
java.lang.String prefix) |
static boolean |
isValidLocalName(java.lang.String local) |
static boolean |
isValidPrefix(java.lang.String prefix) |
static void |
setupNamespaces(NodeBuilder system) |
public static void setupNamespaces(NodeBuilder system)
public static NodeBuilder createStandardMappings(NodeBuilder system)
public static java.lang.String addCustomMapping(NodeBuilder namespaces, java.lang.String uri, java.lang.String prefixHint)
public static void buildIndexNode(NodeBuilder namespaces)
public static java.util.Map<java.lang.String,java.lang.String> getNamespaceMap(Tree root)
public static java.lang.String getNamespacePrefix(Tree root, java.lang.String uri)
public static java.lang.String getNamespaceURI(Tree root, java.lang.String prefix)
public static java.lang.String encodeUri(java.lang.String uri)
uri
- public static boolean isValidPrefix(java.lang.String prefix)
public static boolean isValidLocalName(java.lang.String local)
Copyright © 2010 - 2020 Adobe. All Rights Reserved