|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jv.loader.PsXmlLoader
Loader for Xml files fills a tree structure.
| Constructor Summary | |
PsXmlLoader()
|
|
| Method Summary | |
static PsXmlNode |
addColor(PsXmlNode parentNode,
java.lang.String type,
java.awt.Color color)
|
static void |
addVector(PsXmlNode parentNode,
java.lang.String type,
PdVector vector,
boolean bAttr)
|
static void |
addVector(PsXmlNode parentNode,
java.lang.String type,
PiVector vector,
boolean bAttr)
|
static void |
addVectorList(PsXmlNode parentNode,
java.lang.String type,
java.awt.Color[] vector,
int length)
|
static void |
addVectorList(PsXmlNode parentNode,
java.lang.String type,
PdVector[][] vector,
int length)
|
static void |
addVectorList(PsXmlNode parentNode,
java.lang.String type,
PdVector[] vector,
int length)
|
static void |
addVectorList(PsXmlNode parentNode,
java.lang.String type,
PiVector[] vector,
int length)
|
static java.awt.Color |
parseColorContent(PsXmlNode p)
Parse a PsXmlNode whose content consists of rgb color components. |
static java.awt.Color[] |
parseColorList(PsXmlNode parentNode,
java.lang.String type)
Parse an array of PsXmlNodes of same element type, where each element has data consisting of a blank separated list of integers. |
static java.awt.Color |
parseColorRGB(PsXmlNode parentNode,
java.lang.String type)
Parse a PsXmlNode whose child has a set of rgb color components. |
static PdVector[] |
parseDoubleList(PsXmlNode parentNode,
java.lang.String type,
java.lang.String[] attr)
Parse an array of PsXmlNodes of same element type, where each element has data consisting of a blank separated list of doubles. |
static PiVector[] |
parseIntegerList(PsXmlNode parentNode,
java.lang.String type,
java.lang.String[] attr)
Parse an array of PsXmlNodes of same element type, where each element has data consisting of a blank separated list of integers. |
static PdVector |
parsePdVector(PsXmlNode p,
java.lang.String[] attr)
Parse element content consisting of blank separated list of doubles. |
static PdVector |
parsePdVector(PsXmlNode parentNode,
java.lang.String type,
java.lang.String[] attr)
Parse a PsXmlNode whose child has a set of double values. |
static PdVector |
parsePdVector(java.lang.String string)
Parse a double vector from a blank separated string of doubles. |
static PiVector |
parsePiVector(PsXmlNode p,
java.lang.String[] attr)
Parse element content consisting of a blank separated list of integers. |
static PiVector |
parsePiVector(PsXmlNode parentNode,
java.lang.String type,
java.lang.String[] attr)
Parse a PsXmlNode whose child has a set of integer values. |
static PiVector |
parsePiVector(java.lang.String string)
Parse an integer vector from a blank separated string of integers. |
static void |
parseVectorAttr(P_Vector vec,
PsXmlNode p,
java.lang.String[] attr)
Parse vector attributes of PdVector and PiVector. |
static PsXmlSrc |
read(java.io.BufferedReader in)
Read XML file and fill a new PsXmlSrc class. |
static PsXmlSrc |
read(java.lang.String fileName)
Read XML file and fill a new PsXmlSrc class. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PsXmlLoader()
| Method Detail |
public static PsXmlSrc read(java.lang.String fileName)
fileName - File or URL to read data from.public static PsXmlSrc read(java.io.BufferedReader in)
in - BufferedReader to read textual data from.
public static PdVector[] parseDoubleList(PsXmlNode parentNode,
java.lang.String type,
java.lang.String[] attr)
parentNode - parent node containing a set of PdVector nodes as childrentype - type of elements in arrayattr - array of attributes the vector might have, may be null.
public static PdVector parsePdVector(PsXmlNode parentNode,
java.lang.String type,
java.lang.String[] attr)
parentNode - node whose child has a set of double values.
public static PdVector parsePdVector(PsXmlNode p,
java.lang.String[] attr)
p - node whose content is a list of double values.attr - array of attributes the vector might have, may be null.
public static void parseVectorAttr(P_Vector vec,
PsXmlNode p,
java.lang.String[] attr)
vec - vector whose attributes will be set.p - node with attribute values.attr - array of attributes the node might have, may be null.public static PdVector parsePdVector(java.lang.String string)
string - string with double componentsnull if no doubles available.public static PiVector parsePiVector(java.lang.String string)
string - string with integer componentsnull if no integers available.
public static PiVector[] parseIntegerList(PsXmlNode parentNode,
java.lang.String type,
java.lang.String[] attr)
parentNode - parent node containing a set of PiVector nodes as childrentype - type of elements in arrayattr - array of attributes the vector might have, may be null.
public static PiVector parsePiVector(PsXmlNode parentNode,
java.lang.String type,
java.lang.String[] attr)
parentNode - node whose child has a set of integer values.
public static PiVector parsePiVector(PsXmlNode p,
java.lang.String[] attr)
node - node whose content is a set of integer values.attr - array of attributes the vector might have, may be null.
public static java.awt.Color[] parseColorList(PsXmlNode parentNode,
java.lang.String type)
parentNode - parent node containing a set of color nodes as childrentype - type of elements in array
public static java.awt.Color parseColorRGB(PsXmlNode parentNode,
java.lang.String type)
parentNode - node whose child has a set of rgb colors values.public static java.awt.Color parseColorContent(PsXmlNode p)
p - node whose content is a set of rgb colors values.
public static void addVectorList(PsXmlNode parentNode,
java.lang.String type,
PdVector[] vector,
int length)
public static void addVectorList(PsXmlNode parentNode,
java.lang.String type,
PiVector[] vector,
int length)
public static void addVector(PsXmlNode parentNode,
java.lang.String type,
PdVector vector,
boolean bAttr)
public static void addVector(PsXmlNode parentNode,
java.lang.String type,
PiVector vector,
boolean bAttr)
public static void addVectorList(PsXmlNode parentNode,
java.lang.String type,
PdVector[][] vector,
int length)
public static void addVectorList(PsXmlNode parentNode,
java.lang.String type,
java.awt.Color[] vector,
int length)
public static PsXmlNode addColor(PsXmlNode parentNode,
java.lang.String type,
java.awt.Color color)
|
JavaView® v2.12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||