|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsdai.lang.JsdaiLangAccessor
jsdai.xml.SdaiXmlReader
jsdai.xml.InstanceReader
This class is an abstract org.xml.sax.XMLReader
implementation
which reads JSDAI data and presents it in ISO 10303-28 representation.
It allows extending classes to implement specific bindings. Objects
of classes extending InstanceReader
are primarily useful
for exporting JSDAI populations to XML representation.
Method Summary | |
void |
parse(org.xml.sax.InputSource input)
Parses XML from JSDAI population. |
void |
serialize(java.io.OutputStream stream,
SdaiInputSource inputSource)
Serializes JSDAI population as XML text to the output stream. |
void |
setFeature(java.lang.String name,
boolean value)
Sets the state of the feature for this InstanceReader .
|
Methods inherited from class jsdai.xml.SdaiXmlReader |
getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, parse, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setProperty |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void setFeature(java.lang.String name, boolean value)
InstanceReader
.
The following features are recognized:
name
attribute is added to
<schema-population>
elementsname
attribute of SchemaInstances
.
This is the extension of ISO 10303-28. The default value is true
.<schema-population>
element is added immediately after
the header otherwise this information is skipped. The default value is true
.
setFeature
in interface org.xml.sax.XMLReader
setFeature
in class SdaiXmlReader
name
- The feature name, see the list above for recognized features.value
- The true
or false
value.public void serialize(java.io.OutputStream stream, SdaiInputSource inputSource) throws javax.xml.transform.TransformerConfigurationException, javax.xml.transform.TransformerException
stream
- The output stream of the serialized outputinputSource
- The SDAI input source which defines the population
java.io.IOException
- if an I/O error occurs
org.xml.sax.SAXException
- if an error occurs during the operation
or in underlying JSDAI operations
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException
public void parse(org.xml.sax.InputSource input) throws java.io.IOException, org.xml.sax.SAXException
input
- The input source which has to be of class SdaiInputSource
java.io.IOException
- if an I/O error occurs
org.xml.sax.SAXException
- if an error occurs during the operation
or in underlying JSDAI operations
|
Copyright © LKSoftWare GmbH, 1999-2008 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |