|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.higgins.sts.utilities.XMLHelper
Used to help with common XML processing functions
| Constructor Summary | |
|---|---|
XMLHelper()
|
|
| Method Summary | |
|---|---|
static Element |
domFromFile(String strFileName)
|
static Element |
domFromStream(InputStream inputStream)
|
static String |
escapedString(String strUnescaped)
|
static String |
getTextContent(Element element)
|
static String |
getTextContent(Text text)
|
static String |
htmlEncode(String pText)
|
static void |
logElement(Element domElement)
|
static void |
maskPasswordForChildren(Element element)
Mask password out of trace |
static org.apache.axiom.om.OMElement |
omFromFile(String strFileName)
|
static org.apache.axiom.om.OMElement |
omFromStream(InputStream inputStream)
|
static void |
printHex(byte[] b)
|
static void |
printHex(byte[] b,
int len)
|
static void |
printHex(int[] b)
|
static void |
printHex(int[] b,
int len)
|
static void |
printHex(short[] b)
|
static void |
printHex(short[] b,
int len)
|
static void |
printHex(String label,
byte[] b)
|
static void |
printHex(String label,
byte[] b,
int len)
|
static void |
printHex(String label,
int[] b)
|
static void |
printHex(String label,
int[] b,
int len)
|
static void |
printHex(String label,
short[] b)
|
static void |
printHex(String label,
short[] b,
int len)
|
static Element |
reparseElement(Element domElement)
|
static void |
setTextContent(Element element,
String value)
|
static void |
setTextContent(Text text,
String value)
|
static String |
StripNamespaceDeclaration(String strElement)
|
static void |
stripNewLinesFromElement(Element domElement)
|
static String |
stripNewLinesFromString(String strValue)
|
static void |
stripWhiteSpaceFromElement(Element domElement)
|
static String |
stripWhiteSpaceFromString(String strValue)
|
static byte[] |
toByteArr(String no)
|
static Element |
toDOM(org.apache.axiom.om.OMElement omElement)
Converts an OMElement to an equivalent DOM Element |
static Element |
toDOM(String strElement)
|
static org.eclipse.higgins.sts.api.IElement |
toElement(Element domElement)
Converts an DOM Element to an equivalent Element |
static org.eclipse.higgins.sts.api.IElement |
toElement(org.apache.axiom.om.OMElement omElement)
Converts an OMElement to an equivalent Element |
static String |
toHex(byte b)
|
static String |
toHex(byte[] b)
|
static String |
toHex(byte[] b,
int len)
|
static String |
toHex(int i)
|
static String |
toHex(int[] b)
|
static String |
toHex(int[] b,
int len)
|
static String |
toHex(short i)
|
static String |
toHex(short[] b)
|
static String |
toHex(short[] b,
int len)
|
static String |
toHexF(byte[] b)
|
static String |
toHexF(byte[] b,
int len)
|
static String |
toHexF(int[] b)
|
static String |
toHexF(int[] b,
int len)
|
static String |
toHexF(short[] b)
|
static String |
toHexF(short[] b,
int len)
|
static String |
toHexF(String label,
byte[] b)
|
static String |
toHexF(String label,
byte[] b,
int len)
|
static String |
toHexF(String label,
int[] b)
|
static String |
toHexF(String label,
int[] b,
int len)
|
static String |
toHexF(String label,
short[] b)
|
static String |
toHexF(String label,
short[] b,
int len)
|
static org.apache.axiom.om.OMElement |
toOM(Element domElement)
Converts an DOM Element into an equivalent OMElement |
static org.apache.axiom.om.OMElement |
toOM(String strElement)
|
static String |
toString(Element domElement)
|
static String |
toString(org.apache.axiom.om.OMElement omElement)
Converts an OMElement to an equivalent String |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLHelper()
| Method Detail |
public static void maskPasswordForChildren(Element element)
public static String htmlEncode(String pText)
public static String escapedString(String strUnescaped)
public static byte[] toByteArr(String no)
public static void printHex(byte[] b)
public static void printHex(short[] b)
public static void printHex(int[] b)
public static void printHex(String label,
byte[] b)
public static void printHex(String label,
short[] b)
public static void printHex(String label,
int[] b)
public static String toHexF(String label,
byte[] b)
public static String toHexF(String label,
short[] b)
public static String toHexF(String label,
int[] b)
public static String toHexF(int[] b)
public static String toHexF(short[] b)
public static String toHexF(byte[] b)
public static String toHex(byte[] b)
public static String toHex(short[] b)
public static String toHex(int[] b)
public static void printHex(String label,
byte[] b,
int len)
public static void printHex(String label,
short[] b,
int len)
public static void printHex(String label,
int[] b,
int len)
public static void printHex(byte[] b,
int len)
public static void printHex(short[] b,
int len)
public static void printHex(int[] b,
int len)
public static String toHexF(String label,
int[] b,
int len)
public static String toHexF(String label,
short[] b,
int len)
public static String toHexF(String label,
byte[] b,
int len)
public static String toHexF(byte[] b,
int len)
public static String toHexF(short[] b,
int len)
public static String toHexF(int[] b,
int len)
public static String toHex(int[] b,
int len)
public static String toHex(short[] b,
int len)
public static String toHex(byte[] b,
int len)
public static String toHex(byte b)
public static String toHex(short i)
public static String toHex(int i)
public static String stripNewLinesFromString(String strValue)
public static String stripWhiteSpaceFromString(String strValue)
public static org.eclipse.higgins.sts.api.IElement toElement(org.apache.axiom.om.OMElement omElement)
throws Exception
omElement - an OMElement to be converted into a Element
Exception
public static org.eclipse.higgins.sts.api.IElement toElement(Element domElement)
throws Exception
domElement - a DOM Element to be converted into a Element
Exception
public static Element toDOM(org.apache.axiom.om.OMElement omElement)
throws Exception
omElement - an OMElement to be converted into a DOM Element
Exception
public static String toString(org.apache.axiom.om.OMElement omElement)
throws Exception
omElement - an OMElement to be converted into a String
Exceptionpublic static String StripNamespaceDeclaration(String strElement)
public static org.apache.axiom.om.OMElement toOM(Element domElement)
throws Exception
domElement - an Element to be converted
Exceptionpublic static String getTextContent(Text text)
public static void setTextContent(Text text,
String value)
public static String getTextContent(Element element)
public static void setTextContent(Element element,
String value)
public static void stripNewLinesFromElement(Element domElement)
public static void stripWhiteSpaceFromElement(Element domElement)
public static String toString(Element domElement)
throws IOException
IOException
public static void logElement(Element domElement)
throws IOException
IOException
public static Element toDOM(String strElement)
throws IOException,
Exception
IOException
Exception
public static Element reparseElement(Element domElement)
throws IOException,
Exception
IOException
Exception
public static Element domFromStream(InputStream inputStream)
throws FileNotFoundException,
Exception
FileNotFoundException
Exception
public static Element domFromFile(String strFileName)
throws FileNotFoundException,
Exception
FileNotFoundException
Exception
public static org.apache.axiom.om.OMElement omFromStream(InputStream inputStream)
throws FileNotFoundException,
Exception
FileNotFoundException
Exception
public static org.apache.axiom.om.OMElement omFromFile(String strFileName)
throws FileNotFoundException,
Exception
FileNotFoundException
Exception
public static org.apache.axiom.om.OMElement toOM(String strElement)
throws Exception
Exception
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||