|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.xml.XMLCharacters
org.apache.batik.xml.XMLUtilities
org.apache.batik.dom.util.DOMUtilities
public class DOMUtilities
A collection of utility functions for the DOM.
Field Summary | |
---|---|
protected static String[] |
LOCK_STRINGS
String constants representing DOM modifier strings for various all key lock combinations. |
protected static String[] |
MODIFIER_STRINGS
String constants representing DOM modifier strings for various all shift modifier combinations. |
Fields inherited from class org.apache.batik.xml.XMLCharacters |
---|
ALPHABETIC_CHARACTER, NAME_CHARACTER, NAME_FIRST_CHARACTER, NAME11_CHARACTER, NAME11_FIRST_CHARACTER, PUBLIC_ID_CHARACTER, VERSION_CHARACTER, XML_CHARACTER |
Constructor Summary | |
---|---|
protected |
DOMUtilities()
Do not need to be instantiated. |
Method Summary | |
---|---|
static String |
contentToString(String s)
Returns the given content value transformed to replace invalid characters with entities. |
static Document |
deepCloneDocument(Document doc,
DOMImplementation impl)
Deep clones a document using the given DOM implementation. |
static String |
getLocalName(String s)
Gets the local name from the given qualified name. |
static String |
getModifiersList(int lockState,
int modifiers)
Gets a DOM 3 modifiers string from the given lock and shift bitmasks. |
static String |
getPrefix(String s)
Gets the prefix from the given qualified name. |
static boolean |
isValidName(String s)
Tests whether the given string is a valid name. |
static boolean |
isValidName11(String s)
Tests whether the given string is a valid XML 1.1 name. |
static boolean |
isValidPrefix(String s)
Tests whether the given string is a valid prefix. |
static void |
parseStyleSheetPIData(String data,
HashTable table)
Parses a 'xml-stylesheet' processing instruction data section and puts the pseudo attributes in the given table. |
static void |
writeDocument(Document doc,
Writer w)
Writes the given document using the given writer. |
static void |
writeNode(Node n,
Writer w)
Writes a node using the given writer. |
Methods inherited from class org.apache.batik.xml.XMLUtilities |
---|
createXMLDeclarationReader, createXMLDocumentReader, encodingToJavaEncoding, getXMLDeclarationEncoding, isXML11Character, isXML11NameCharacter, isXML11NameFirstCharacter, isXMLAlphabeticCharacter, isXMLCharacter, isXMLNameCharacter, isXMLNameFirstCharacter, isXMLPublicIdCharacter, isXMLSpace, isXMLVersionCharacter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String[] LOCK_STRINGS
protected static final String[] MODIFIER_STRINGS
Constructor Detail |
---|
protected DOMUtilities()
Method Detail |
---|
public static void writeDocument(Document doc, Writer w) throws IOException
IOException
public static void writeNode(Node n, Writer w) throws IOException
IOException
public static String contentToString(String s)
public static Document deepCloneDocument(Document doc, DOMImplementation impl)
public static boolean isValidName(String s)
public static boolean isValidName11(String s)
public static boolean isValidPrefix(String s)
public static String getPrefix(String s)
public static String getLocalName(String s)
public static void parseStyleSheetPIData(String data, HashTable table)
public static String getModifiersList(int lockState, int modifiers)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |