|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.code.linkedinapi.schema.xpp.XppUtils
public class XppUtils
The Class DomUtils.
Constructor Summary | |
---|---|
XppUtils()
|
Method Summary | |
---|---|
static java.lang.Long |
getAttributeValueAsLongFromNode(org.xmlpull.v1.XmlPullParser node,
java.lang.String attributeName)
Gets the attribute value as long from node. |
static java.lang.String |
getAttributeValueFromNode(org.xmlpull.v1.XmlPullParser node,
java.lang.String attributeName)
Gets the attribute value from node. |
static java.lang.Long |
getElementValueAsLongFromNode(org.xmlpull.v1.XmlPullParser node)
Gets the element value as long from node. |
static java.lang.String |
getElementValueFromNode(org.xmlpull.v1.XmlPullParser node)
Gets the element value from node. |
private static boolean |
isNullOrEmpty(java.lang.String string)
Checks if is null or empty. |
static void |
setAttributeValueToNode(org.xmlpull.v1.XmlSerializer serializer,
java.lang.String attributeName,
java.lang.Object attributeValue)
Sets the attribute value to node. |
static void |
setElementValue(org.xmlpull.v1.XmlSerializer serializer,
java.lang.Object elementValue)
Sets the element value. |
static void |
setElementValueToNode(org.xmlpull.v1.XmlSerializer serializer,
java.lang.String elementName,
java.lang.Object elementValue)
Sets the element value to node. |
static void |
skipSubTree(org.xmlpull.v1.XmlPullParser parser)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XppUtils()
Method Detail |
---|
public static void setElementValueToNode(org.xmlpull.v1.XmlSerializer serializer, java.lang.String elementName, java.lang.Object elementValue) throws java.io.IOException
node
- the nodeelementName
- the element nameelementValue
- the element value
java.io.IOException
public static void setElementValue(org.xmlpull.v1.XmlSerializer serializer, java.lang.Object elementValue) throws java.io.IOException
node
- the nodeelementValue
- the element value
java.io.IOException
public static void setAttributeValueToNode(org.xmlpull.v1.XmlSerializer serializer, java.lang.String attributeName, java.lang.Object attributeValue) throws java.io.IOException
node
- the nodeattributeName
- the attribute nameattributeValue
- the attribute value
java.io.IOException
public static java.lang.String getElementValueFromNode(org.xmlpull.v1.XmlPullParser node) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException
node
- the nodevalueName
- the value name
java.io.IOException
org.xmlpull.v1.XmlPullParserException
public static java.lang.Long getElementValueAsLongFromNode(org.xmlpull.v1.XmlPullParser node) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException
node
- the nodevalueName
- the value name
org.xmlpull.v1.XmlPullParserException
java.io.IOException
public static java.lang.String getAttributeValueFromNode(org.xmlpull.v1.XmlPullParser node, java.lang.String attributeName)
node
- the nodeattributeName
- the attribute name
public static java.lang.Long getAttributeValueAsLongFromNode(org.xmlpull.v1.XmlPullParser node, java.lang.String attributeName)
node
- the nodeattributeName
- the attribute name
public static void skipSubTree(org.xmlpull.v1.XmlPullParser parser) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException
org.xmlpull.v1.XmlPullParserException
java.io.IOException
private static boolean isNullOrEmpty(java.lang.String string)
string
- the string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |