com.spire.doc.documents.xml
Class XDLSReader

java.lang.Object
  extended by com.spire.doc.documents.xml.XDLSReader
All Implemented Interfaces:
IXDLSAttributeReader, IXDLSContentReader

public class XDLSReader
extends java.lang.Object
implements IXDLSAttributeReader, IXDLSContentReader


Constructor Summary
XDLSReader(com.spire.ms.System.Xml.XmlReader reader)
           
 
Method Summary
 void deserialize(IDocumentSerializable value)
           
 IXDLSAttributeReader getAttributeReader()
          Gets the attribute reader.
 java.lang.String getAttributeValue(java.lang.String name)
          Gets the attribute value.
 com.spire.ms.System.Xml.XmlReader getInnerReader()
           
 int getNodeType()
          Gets the type of the node.
 java.lang.String getTagName()
          Gets the name of the tag.
 boolean hasAttribute(java.lang.String name)
          Determines whether the current node has attribute with specified name.
 boolean readBoolean(java.lang.String name)
          Reads the boolean.
 byte readByte(java.lang.String name)
          Reads the byte.
 byte[] readChildBinaryElement()
          Reads the child binary element.
 java.lang.Object readChildElement(java.lang.Class type)
          Reads the child element.
 boolean readChildElement(java.lang.Object value)
          Reads the child element.
 java.lang.String readChildStringContent()
          Reads the content of the child string.
 java.util.Date readDateTime(java.lang.String s)
          Reads the date time.
 double readDouble(java.lang.String name)
          Reads the double.
 long readEnum(java.lang.String name, java.lang.Class enumType)
          Reads the enum.
 float readFloat(java.lang.String name)
          Reads the float.
 int readInt(java.lang.String name)
          Reads the int.
 short readShort(java.lang.String name)
          Reads the short.
 java.lang.String readString(java.lang.String name)
          Reads the string.
 
Methods inherited from interface com.spire.doc.interfaces.IXDLSAttributeReader
readColor
 

Constructor Detail

XDLSReader

public XDLSReader(com.spire.ms.System.Xml.XmlReader reader)
Method Detail

deserialize

public void deserialize(IDocumentSerializable value)

hasAttribute

public boolean hasAttribute(java.lang.String name)
Description copied from interface: IXDLSAttributeReader
Determines whether the current node has attribute with specified name.

Specified by:
hasAttribute in interface IXDLSAttributeReader
Parameters:
name - the name.
Returns:
if has attribute with specified name, set to true.

readString

public java.lang.String readString(java.lang.String name)
Description copied from interface: IXDLSAttributeReader
Reads the string.

Specified by:
readString in interface IXDLSAttributeReader
Parameters:
name - the name.
Returns:
The string

readInt

public int readInt(java.lang.String name)
Description copied from interface: IXDLSAttributeReader
Reads the int.

Specified by:
readInt in interface IXDLSAttributeReader
Parameters:
name - the name.
Returns:
The int

readShort

public short readShort(java.lang.String name)
Description copied from interface: IXDLSAttributeReader
Reads the short.

Specified by:
readShort in interface IXDLSAttributeReader
Parameters:
name - the name.
Returns:
The short

readDouble

public double readDouble(java.lang.String name)
Description copied from interface: IXDLSAttributeReader
Reads the double.

Specified by:
readDouble in interface IXDLSAttributeReader
Parameters:
name - the name.
Returns:
The double

readFloat

public float readFloat(java.lang.String name)
Description copied from interface: IXDLSAttributeReader
Reads the float.

Specified by:
readFloat in interface IXDLSAttributeReader
Parameters:
name - the name.
Returns:
The float

readBoolean

public boolean readBoolean(java.lang.String name)
Description copied from interface: IXDLSAttributeReader
Reads the boolean.

Specified by:
readBoolean in interface IXDLSAttributeReader
Parameters:
name - The name
Returns:
The boolean

readByte

public byte readByte(java.lang.String name)
Description copied from interface: IXDLSAttributeReader
Reads the byte.

Specified by:
readByte in interface IXDLSAttributeReader
Parameters:
name - the name.
Returns:
The byte

readEnum

public long readEnum(java.lang.String name,
                     java.lang.Class enumType)
Description copied from interface: IXDLSAttributeReader
Reads the enum.

Specified by:
readEnum in interface IXDLSAttributeReader
Parameters:
name - the name.
enumType - type of the enum.
Returns:
The value of the enum

readDateTime

public java.util.Date readDateTime(java.lang.String s)
Description copied from interface: IXDLSAttributeReader
Reads the date time.

Specified by:
readDateTime in interface IXDLSAttributeReader
Parameters:
s - the string
Returns:
date

getTagName

public java.lang.String getTagName()
Description copied from interface: IXDLSContentReader
Gets the name of the tag.

Specified by:
getTagName in interface IXDLSContentReader
Returns:
the name of the tag.

getNodeType

public int getNodeType()
Description copied from interface: IXDLSContentReader
Gets the type of the node.

Specified by:
getNodeType in interface IXDLSContentReader
Returns:
the type of the node.

getAttributeValue

public java.lang.String getAttributeValue(java.lang.String name)
Description copied from interface: IXDLSContentReader
Gets the attribute value.

Specified by:
getAttributeValue in interface IXDLSContentReader
Parameters:
name - the name.
Returns:
String

readChildElement

public boolean readChildElement(java.lang.Object value)
Description copied from interface: IXDLSContentReader
Reads the child element.

Specified by:
readChildElement in interface IXDLSContentReader
Parameters:
value - the value
Returns:
The child element

readChildElement

public java.lang.Object readChildElement(java.lang.Class type)
Description copied from interface: IXDLSContentReader
Reads the child element.

Specified by:
readChildElement in interface IXDLSContentReader
Parameters:
type - the type.
Returns:
object

readChildStringContent

public java.lang.String readChildStringContent()
Description copied from interface: IXDLSContentReader
Reads the content of the child string.

Specified by:
readChildStringContent in interface IXDLSContentReader
Returns:
String

readChildBinaryElement

public byte[] readChildBinaryElement()
Description copied from interface: IXDLSContentReader
Reads the child binary element.

Specified by:
readChildBinaryElement in interface IXDLSContentReader
Returns:
The child binary element

getInnerReader

public com.spire.ms.System.Xml.XmlReader getInnerReader()

getAttributeReader

public IXDLSAttributeReader getAttributeReader()
Description copied from interface: IXDLSContentReader
Gets the attribute reader.

Specified by:
getAttributeReader in interface IXDLSContentReader
Returns:
the attribute reader.