|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.util.xml.XMLMechanismUtilities
Class Utility for this package.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static boolean |
DEBUG
|
private static String |
RESOURCE
|
Constructor Summary | |
XMLMechanismUtilities()
|
Method Summary | |
static void |
cleanDOMDocument(Node node)
removes whitespace Text Nodes from a Node or Document's hierarchy, and trims whitespace from the beginning and end of the String data of non-whitespace Text Nodes in a Node or Document's hierarchy. |
static String |
convertTypeName(String propertyType)
Given the results of the getPropertyType introspection method, this method returns the class, interface or java primitive type as a single fully qualified class name, or the primitive name. |
static String |
createFullyQualifiedFileName(File file)
Supported API: false |
static String |
createFullyQualifiedFileName(String path,
String fileroot,
String ext)
Supported API: false |
static String |
dotToUnderscore(String theString)
Supported API: false |
static String |
getSpaces(int spaces)
returns a string with spaces only, whose length is equal to the length argument Supported API: false |
static String |
parseAttributeName(String attributeNameClassNamePair)
parses the attribute name from an attributeName:className pair. |
static String |
parseClassGetName(String classGetName)
given the results of .getName() or .toString() on a class object, returns a more human-readable version, especially for arrays. |
static String |
parseClassName(String attributeNameClassNamePair)
parses the class name from an attributeName:className pair. |
static String |
stripGeneratorFromClassName(String className)
This method takes a String and removes the suffix "Generator" from it, if any such suffix exists. |
static String |
stripPackagesFromClassName(String fullyQualifiedClassName)
Given a String, this method returns the same String with any text up to and including the first period (".") removed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final boolean DEBUG
Constructor Detail |
public XMLMechanismUtilities()
Method Detail |
public static String stripPackagesFromClassName(String fullyQualifiedClassName)
fullyQualifiedClassName
-
public static String stripGeneratorFromClassName(String className)
className
-
public static String convertTypeName(String propertyType)
propertyType
-
public static void cleanDOMDocument(Node node)
node
- public static String dotToUnderscore(String theString)
theString
-
public static String createFullyQualifiedFileName(String path, String fileroot, String ext)
path
- fileroot
- ext
-
public static String createFullyQualifiedFileName(File file) throws XMLMechanismException
file
-
XMLMechanismException
public static String getSpaces(int spaces) throws XMLMechanismException
spaces
- the number of spaces to return
XMLMechanismException
public static String parseClassName(String attributeNameClassNamePair)
attributeNameClassNamePair
-
public static String parseAttributeName(String attributeNameClassNamePair)
attributeNameClassNamePair
-
public static String parseClassGetName(String classGetName)
classGetName
- the results of .getName() or .toString() on a class object.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |