|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.util.xml.XmlUtil
| Constructor Summary | |
XmlUtil()
|
|
| Method Summary | |
static String |
escapeCharacterData(String text)
Escapes any special characters in the supplied text so that it can be included as character data in an XML document. |
static String |
escapeDoubleQuotedAttValue(String value)
Escapes any special characters in the supplied value so that it can be used as an double-quoted attribute value in an XML document. |
static String |
escapeSingleQuotedAttValue(String value)
Escapes any special characters in the supplied value so that it can be used as an single-quoted attribute value in an XML document. |
static int |
findSplitIndex(String uri)
Tries to find a point in the supplied URI where this URI can be safely split into a namespace part and a local name. |
static boolean |
isCombiningChar(char c)
|
static boolean |
isDigit(char c)
|
static boolean |
isExtender(char c)
|
static boolean |
isIdeographic(char c)
|
static boolean |
isLetter(char c)
|
static boolean |
isNCName(String name)
Checks whether the supplied String is an NCName (Namespace Classified Name) as specified at http://www.w3.org/TR/REC-xml-names/#NT-NCName. |
static boolean |
isNCNameChar(char c)
|
static String |
resolveEntities(String text)
Replaces all XML character entities with the character they represent. |
static String |
resolveEntity(String entName)
Resolves an entity reference or character reference to its value. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XmlUtil()
| Method Detail |
public static String escapeCharacterData(String text)
public static String escapeDoubleQuotedAttValue(String value)
public static String escapeSingleQuotedAttValue(String value)
public static String resolveEntities(String text)
public static String resolveEntity(String entName)
entName - The 'name' of the reference. This is the string between
& and ;, e.g. amp, quot, #65 or #x41.
public static int findSplitIndex(String uri)
uri - The URI to split.
public static final boolean isNCName(String name)
public static final boolean isNCNameChar(char c)
public static final boolean isLetter(char c)
public static final boolean isIdeographic(char c)
public static final boolean isCombiningChar(char c)
public static final boolean isDigit(char c)
public static final boolean isExtender(char c)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||