se.sics.isl.transport
Class TransportReader
java.lang.Object
se.sics.isl.transport.TransportReader
- Direct Known Subclasses:
- BinaryTransportReader
public abstract class TransportReader
- extends java.lang.Object
Method Summary |
protected Transportable |
createTransportable(java.lang.String className)
|
abstract boolean |
enterNode()
|
abstract boolean |
exitNode()
|
java.lang.String |
getAttribute(int index)
|
java.lang.String |
getAttribute(java.lang.String name)
|
java.lang.String |
getAttribute(java.lang.String name,
java.lang.String defaultValue)
|
protected abstract java.lang.String |
getAttribute(java.lang.String name,
java.lang.String defaultValue,
boolean isRequired)
|
double |
getAttributeAsDouble(java.lang.String name)
|
double |
getAttributeAsDouble(java.lang.String name,
double defaultValue)
|
double |
getAttributeAsDouble(java.lang.String name,
double defaultValue,
boolean isRequired)
|
float |
getAttributeAsFloat(java.lang.String name)
|
float |
getAttributeAsFloat(java.lang.String name,
float defaultValue)
|
protected float |
getAttributeAsFloat(java.lang.String name,
float defaultValue,
boolean isRequired)
|
int |
getAttributeAsInt(java.lang.String name)
|
int |
getAttributeAsInt(java.lang.String name,
int defaultValue)
|
protected int |
getAttributeAsInt(java.lang.String name,
int defaultValue,
boolean isRequired)
|
int[] |
getAttributeAsIntArray(java.lang.String name)
|
protected int[] |
getAttributeAsIntArray(java.lang.String name,
boolean isRequired)
|
long |
getAttributeAsLong(java.lang.String name)
|
long |
getAttributeAsLong(java.lang.String name,
long defaultValue)
|
protected long |
getAttributeAsLong(java.lang.String name,
long defaultValue,
boolean isRequired)
|
abstract int |
getAttributeCount()
|
abstract java.lang.String |
getAttributeName(int index)
|
abstract java.lang.String |
getNodeName()
|
protected abstract int |
getPosition()
|
protected java.lang.String |
getTransportableClass(java.lang.String nodeName)
|
abstract boolean |
hasMoreNodes()
|
abstract boolean |
isNode()
|
abstract boolean |
isNode(java.lang.String name)
|
abstract boolean |
nextNode(boolean isRequired)
|
abstract boolean |
nextNode(java.lang.String name,
boolean isRequired)
|
Transportable |
readTransportable()
|
protected void |
readTransportable(Transportable object)
|
abstract void |
reset()
|
void |
setContext(Context context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransportReader
protected TransportReader()
setContext
public void setContext(Context context)
reset
public abstract void reset()
getPosition
protected abstract int getPosition()
readTransportable
public Transportable readTransportable()
throws java.text.ParseException
- Throws:
java.text.ParseException
getTransportableClass
protected java.lang.String getTransportableClass(java.lang.String nodeName)
throws java.text.ParseException
- Throws:
java.text.ParseException
createTransportable
protected Transportable createTransportable(java.lang.String className)
throws java.text.ParseException
- Throws:
java.text.ParseException
readTransportable
protected void readTransportable(Transportable object)
throws java.text.ParseException
- Throws:
java.text.ParseException
hasMoreNodes
public abstract boolean hasMoreNodes()
throws java.text.ParseException
- Throws:
java.text.ParseException
nextNode
public abstract boolean nextNode(boolean isRequired)
throws java.text.ParseException
- Throws:
java.text.ParseException
nextNode
public abstract boolean nextNode(java.lang.String name,
boolean isRequired)
throws java.text.ParseException
- Throws:
java.text.ParseException
getNodeName
public abstract java.lang.String getNodeName()
throws java.text.ParseException
- Throws:
java.text.ParseException
isNode
public abstract boolean isNode()
throws java.text.ParseException
- Throws:
java.text.ParseException
isNode
public abstract boolean isNode(java.lang.String name)
throws java.text.ParseException
- Throws:
java.text.ParseException
enterNode
public abstract boolean enterNode()
throws java.text.ParseException
- Throws:
java.text.ParseException
exitNode
public abstract boolean exitNode()
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttributeCount
public abstract int getAttributeCount()
getAttributeName
public abstract java.lang.String getAttributeName(int index)
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttribute
public java.lang.String getAttribute(int index)
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttribute
public java.lang.String getAttribute(java.lang.String name)
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttribute
public java.lang.String getAttribute(java.lang.String name,
java.lang.String defaultValue)
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttribute
protected abstract java.lang.String getAttribute(java.lang.String name,
java.lang.String defaultValue,
boolean isRequired)
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttributeAsInt
public int getAttributeAsInt(java.lang.String name)
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttributeAsInt
public int getAttributeAsInt(java.lang.String name,
int defaultValue)
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttributeAsInt
protected int getAttributeAsInt(java.lang.String name,
int defaultValue,
boolean isRequired)
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttributeAsLong
public long getAttributeAsLong(java.lang.String name)
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttributeAsLong
public long getAttributeAsLong(java.lang.String name,
long defaultValue)
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttributeAsLong
protected long getAttributeAsLong(java.lang.String name,
long defaultValue,
boolean isRequired)
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttributeAsFloat
public float getAttributeAsFloat(java.lang.String name)
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttributeAsFloat
public float getAttributeAsFloat(java.lang.String name,
float defaultValue)
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttributeAsFloat
protected float getAttributeAsFloat(java.lang.String name,
float defaultValue,
boolean isRequired)
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttributeAsDouble
public double getAttributeAsDouble(java.lang.String name)
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttributeAsDouble
public double getAttributeAsDouble(java.lang.String name,
double defaultValue)
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttributeAsDouble
public double getAttributeAsDouble(java.lang.String name,
double defaultValue,
boolean isRequired)
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttributeAsIntArray
public int[] getAttributeAsIntArray(java.lang.String name)
throws java.text.ParseException
- Throws:
java.text.ParseException
getAttributeAsIntArray
protected int[] getAttributeAsIntArray(java.lang.String name,
boolean isRequired)
throws java.text.ParseException
- Throws:
java.text.ParseException
Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.