|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.architecture.traffic.xml.XMLUtils
public class XMLUtils
This class contains a few static utility methods that are used by the various parts of the XML parser
| Constructor Summary | |
|---|---|
XMLUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
fromXMLString(java.lang.String s)
Decodes a string which is encoded with toXMLString. |
static java.lang.String |
getGenericName(java.lang.String fullName)
Convert a full XML name to its generic name. |
static java.lang.String |
getGenericName(java.lang.String fullName,
boolean removeArrays)
Convert a full XML name to its generic name. |
static java.lang.String |
getLastName(java.lang.String fullName)
Calculates the last name of a XML path name |
static java.lang.String |
getLastName(XMLSerializable object)
Calculates the last name of a XMLSerializable object |
static int |
getLevel(java.lang.String fullName)
Calculates the level of a XML path name |
static java.lang.String |
getParentName(java.lang.String fullName)
Calculates the parent path name of a XML path name |
static java.lang.String |
getParentName(XMLSerializable object)
Calculates the parent path name of a XML path name |
static java.lang.String |
getSpecificLastName(java.lang.String fullName)
Takes the last name of a full XML tag name. |
static void |
loadSecondStage(java.util.Enumeration e,
java.util.Dictionary dictionaries)
Load the second stage of an enumeration of objects that implement TwoStageLoader |
static void |
setParentName(java.util.Enumeration e,
java.lang.String newParentName)
Sets new parentNames for every element in an enumeration of XMLSerializables. |
static java.lang.String |
toXMLString(java.lang.String s)
Encodes characters which can confuse the XML parser. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLUtils()
| Method Detail |
|---|
public static java.lang.String getLastName(java.lang.String fullName)
fullName - The path name
public static java.lang.String getLastName(XMLSerializable object)
object - The XMLSerializable object
public static java.lang.String getParentName(java.lang.String fullName)
fullName - The path name
public static java.lang.String getParentName(XMLSerializable object)
object - The XMLSerializable object
public static int getLevel(java.lang.String fullName)
fullName - The path name
public static java.lang.String toXMLString(java.lang.String s)
s - The string to encode
public static java.lang.String fromXMLString(java.lang.String s)
s - The string to decode
public static java.lang.String getGenericName(java.lang.String fullName)
fullName - The XML name
public static java.lang.String getGenericName(java.lang.String fullName,
boolean removeArrays)
fullName - The XML nameremoveArrays - Wether array elements have to be removed from the
name.
public static java.lang.String getSpecificLastName(java.lang.String fullName)
fullName - The full XML tag name to convert
public static void loadSecondStage(java.util.Enumeration e,
java.util.Dictionary dictionaries)
throws XMLInvalidInputException,
XMLTreeException
e - The enumeration of TwoStageLoadersdictionaries - The main dictionary to load them with
XMLInvalidInputException - If one of the elements in the
enumeration is not a TwoStageLoader
XMLTreeException - DOCUMENT ME!
public static void setParentName(java.util.Enumeration e,
java.lang.String newParentName)
throws XMLTreeException
e - The enumeration of XMLSerializablesnewParentName - The new p
XMLTreeException - If one of the elements in the enumeration is
not XMLSerializable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||