public class

XppUtils

extends Object
java.lang.Object
   ↳ com.google.code.linkedinapi.schema.xpp.XppUtils

Class Overview

The Class DomUtils.

Summary

Public Constructors
XppUtils()
Public Methods
static Long getAttributeValueAsLongFromNode(XmlPullParser node, String attributeName)
Gets the attribute value as long from node.
static String getAttributeValueFromNode(XmlPullParser node, String attributeName)
Gets the attribute value from node.
static Long getElementValueAsLongFromNode(XmlPullParser node)
Gets the element value as long from node.
static String getElementValueFromNode(XmlPullParser node)
Gets the element value from node.
static void setAttributeValueToNode(XmlSerializer serializer, String attributeName, Object attributeValue)
Sets the attribute value to node.
static void setElementValue(XmlSerializer serializer, Object elementValue)
Sets the element value.
static void setElementValueToNode(XmlSerializer serializer, String elementName, Object elementValue)
Sets the element value to node.
static void skipSubTree(XmlPullParser parser)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public XppUtils ()

Public Methods

public static Long getAttributeValueAsLongFromNode (XmlPullParser node, String attributeName)

Gets the attribute value as long from node.

Parameters
node The node
attributeName The attribute name
Returns
  • the attribute value as long from node

public static String getAttributeValueFromNode (XmlPullParser node, String attributeName)

Gets the attribute value from node.

Parameters
node The node
attributeName The attribute name
Returns
  • the attribute value from node

public static Long getElementValueAsLongFromNode (XmlPullParser node)

Gets the element value as long from node.

Parameters
node The node
Returns
  • the element value as long from node
Throws
XmlPullParserException
IOException

public static String getElementValueFromNode (XmlPullParser node)

Gets the element value from node.

Parameters
node The node
Returns
  • the element value from node
Throws
XmlPullParserException
IOException

public static void setAttributeValueToNode (XmlSerializer serializer, String attributeName, Object attributeValue)

Sets the attribute value to node.

Parameters
serializer
attributeName The attribute name
attributeValue The attribute value
Throws
IOException

public static void setElementValue (XmlSerializer serializer, Object elementValue)

Sets the element value.

Parameters
serializer
elementValue The element value
Throws
IOException

public static void setElementValueToNode (XmlSerializer serializer, String elementName, Object elementValue)

Sets the element value to node.

Parameters
serializer
elementName The element name
elementValue The element value
Throws
IOException

public static void skipSubTree (XmlPullParser parser)

Parameters
parser
Throws
IOException
XmlPullParserException