|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jxml.quick.QConverterSupport
Helper class for QConverter. When building a conversion tree for transforming data models, the classes of all the nodes in the tree can subclass QConverterSupport.
Field Summary | |
AttributeListImpl |
al
|
DocumentHandler |
destination
|
String |
PUBLIC
|
String |
rootTag
|
String |
SYSTEM
|
Constructor Summary | |
QConverterSupport()
|
Method Summary | |
void |
addBase64Attribute(String name,
byte[] value)
Generate an attribute. |
void |
addBase64Content(byte[] value)
Add text to the content of the current element. |
void |
addBigDecimalAttribute(String name,
BigDecimal value)
Generate an attribute. |
void |
addBigDecimalContent(BigDecimal value)
Add text to the content of the current element. |
void |
addBooleanAttribute(String name,
boolean value)
Generate an attribute. |
void |
addBooleanAttribute(String name,
Boolean value)
Generate an attribute. |
void |
addBooleanContent(boolean value)
Add text to the content of the current element. |
void |
addBooleanContent(Boolean value)
Add text to the content of the current element. |
void |
addByteAttribute(String name,
byte value)
Generate an attribute. |
void |
addByteAttribute(String name,
Byte value)
Generate an attribute. |
void |
addByteContent(byte value)
Add text to the content of the current element. |
void |
addByteContent(Byte value)
Add text to the content of the current element. |
void |
addCharAttribute(String name,
char value)
Generate an attribute. |
void |
addCharAttribute(String name,
Character value)
Generate an attribute. |
void |
addCharContent(char value)
Add text to the content of the current element. |
void |
addCharContent(Character value)
Add text to the content of the current element. |
void |
addDoubleAttribute(String name,
double value)
Generate an attribute. |
void |
addDoubleAttribute(String name,
Double value)
Generate an attribute. |
void |
addDoubleContent(double value)
Add text to the content of the current element. |
void |
addDoubleContent(Double value)
Add text to the content of the current element. |
void |
addFloatAttribute(String name,
float value)
Generate an attribute. |
void |
addFloatAttribute(String name,
Float value)
Generate an attribute. |
void |
addFloatContent(float value)
Add text to the content of the current element. |
void |
addFloatContent(Float value)
Add text to the content of the current element. |
void |
addIntAttribute(String name,
int value)
Generate an attribute. |
void |
addIntAttribute(String name,
Integer value)
Generate an attribute. |
void |
addIntContent(int value)
Add text to the content of the current element. |
void |
addIntContent(Integer value)
Add text to the content of the current element. |
void |
addLongAttribute(String name,
long value)
Generate an attribute. |
void |
addLongAttribute(String name,
Long value)
Generate an attribute. |
void |
addLongContent(long value)
Add text to the content of the current element. |
void |
addLongContent(Long value)
Add text to the content of the current element. |
void |
addShortAttribute(String name,
short value)
Generate an attribute. |
void |
addShortAttribute(String name,
Short value)
Generate an attribute. |
void |
addShortContent(short value)
Add text to the content of the current element. |
void |
addShortContent(Short value)
Add text to the content of the current element. |
void |
addStringAttribute(String name,
String value)
Generate an attribute. |
void |
addStringContent(String value)
Add text to the content of the current element. |
void |
addURLAttribute(String name,
URL value)
Generate an attribute. |
void |
addURLContent(URL value)
Add text to the content of the current element. |
void |
emptyElement(String name)
Generate an start and end element events for an empty element. |
void |
endElement(String name)
Generate an end element event. |
void |
eval(DocumentHandler destination)
Generates a sequence of SAX events. |
void |
eval(Map properties,
List args,
ClassLoader cl)
This method can be invoked by config. schema - Input schema URL or file schemaClass - Input schema class (prefered over schema) in - Document input URL or file out - Output file (Optional). |
void |
evalRoot()
Generate element events. |
String |
getPUBLIC()
|
String |
getRootTag()
|
String |
getSYSTEM()
|
static void |
main(String[] args)
Converts from one markup language to another: arg[0] - Input schema URL or file arg[1] - Document input URL or file arg[2] - Output file (Optional). |
void |
setDestination(DocumentHandler destination)
Set the destination for the generated SAX events. |
void |
startElement(String name)
Generate a start element event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public DocumentHandler destination
public AttributeListImpl al
public String SYSTEM
public String PUBLIC
public String rootTag
Constructor Detail |
public QConverterSupport()
Method Detail |
public static void main(String[] args)
public void eval(Map properties, List args, ClassLoader cl) throws Exception
eval
in interface Item
public void setDestination(DocumentHandler destination)
destination
- Destination for all generated SAX events.public void eval(DocumentHandler destination) throws SAXException, IOException
eval
in interface QConverter
destination
- Destination for all generated SAX events.public void evalRoot() throws SAXException, IOException
public void addStringAttribute(String name, String value)
name
- The attribute's namevalue
- The attribute's valuepublic void addBooleanAttribute(String name, Boolean value)
name
- The attribute's namevalue
- The attribute's valuepublic void addBooleanAttribute(String name, boolean value)
name
- The attribute's namevalue
- The attribute's valuepublic void addIntAttribute(String name, Integer value)
name
- The attribute's namevalue
- The attribute's valuepublic void addIntAttribute(String name, int value)
name
- The attribute's namevalue
- The attribute's valuepublic void addLongAttribute(String name, Long value)
name
- The attribute's namevalue
- The attribute's valuepublic void addLongAttribute(String name, long value)
name
- The attribute's namevalue
- The attribute's valuepublic void addShortAttribute(String name, Short value)
name
- The attribute's namevalue
- The attribute's valuepublic void addShortAttribute(String name, short value)
name
- The attribute's namevalue
- The attribute's valuepublic void addFloatAttribute(String name, Float value)
name
- The attribute's namevalue
- The attribute's valuepublic void addFloatAttribute(String name, float value)
name
- The attribute's namevalue
- The attribute's valuepublic void addByteAttribute(String name, Byte value)
name
- The attribute's namevalue
- The attribute's valuepublic void addByteAttribute(String name, byte value)
name
- The attribute's namevalue
- The attribute's valuepublic void addDoubleAttribute(String name, Double value)
name
- The attribute's namevalue
- The attribute's valuepublic void addDoubleAttribute(String name, double value)
name
- The attribute's namevalue
- The attribute's valuepublic void addURLAttribute(String name, URL value)
name
- The attribute's namevalue
- The attribute's valuepublic void addBase64Attribute(String name, byte[] value)
name
- The attribute's namevalue
- The attribute's valuepublic void addCharAttribute(String name, Character value)
name
- The attribute's namevalue
- The attribute's valuepublic void addCharAttribute(String name, char value)
name
- The attribute's namevalue
- The attribute's valuepublic void addBigDecimalAttribute(String name, BigDecimal value)
name
- The attribute's namevalue
- The attribute's valuepublic void startElement(String name) throws SAXException
name
- The element's tag name.public void addStringContent(String value) throws SAXException
value
- Text to be added to the element's content.public void addBooleanContent(Boolean value) throws SAXException
value
- Text to be added to the element's content.public void addBooleanContent(boolean value) throws SAXException
value
- Text to be added to the element's content.public void addIntContent(Integer value) throws SAXException
value
- Text to be added to the element's content.public void addIntContent(int value) throws SAXException
value
- Text to be added to the element's content.public void addLongContent(Long value) throws SAXException
value
- Text to be added to the element's content.public void addLongContent(long value) throws SAXException
value
- Text to be added to the element's content.public void addShortContent(Short value) throws SAXException
value
- Text to be added to the element's content.public void addShortContent(short value) throws SAXException
value
- Text to be added to the element's content.public void addFloatContent(Float value) throws SAXException
value
- Text to be added to the element's content.public void addFloatContent(float value) throws SAXException
value
- Text to be added to the element's content.public void addByteContent(Byte value) throws SAXException
value
- Text to be added to the element's content.public void addByteContent(byte value) throws SAXException
value
- Text to be added to the element's content.public void addDoubleContent(Double value) throws SAXException
value
- Text to be added to the element's content.public void addDoubleContent(double value) throws SAXException
value
- Text to be added to the element's content.public void addURLContent(URL value) throws SAXException
value
- Text to be added to the element's content.public void addBase64Content(byte[] value) throws SAXException
value
- Text to be added to the element's content.public void addCharContent(Character value) throws SAXException
value
- Text to be added to the element's content.public void addCharContent(char value) throws SAXException
value
- Text to be added to the element's content.public void addBigDecimalContent(BigDecimal value) throws SAXException
value
- Text to be added to the element's content.public void endElement(String name) throws SAXException
name
- The element's tag name.public void emptyElement(String name) throws SAXException
name
- The element's tag name.public String getPUBLIC() throws SAXException, IOException
getPUBLIC
in interface QConverter
public String getSYSTEM() throws SAXException, IOException
getSYSTEM
in interface QConverter
public String getRootTag() throws SAXException, IOException
getRootTag
in interface QConverter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |