org.apache.ws.jaxme.js.beanreader
Class BeanSchemaWriter
java.lang.Object
org.apache.ws.jaxme.js.beanreader.BeanSchemaWriter
public class BeanSchemaWriter
extends java.lang.Object
The
BeanSchemaWriter
is an object, which takes
as input an instance of
JavaSource
, and creates
a corresponding instance of XML Schema.
boolean | isFiringStartDocument() - Returns, whether the bean schema writer is firing the
ContentHandler.startDocument() , and
ContentHandler.endDocument() events.
|
boolean | isFiringXmlnsAttributes() - Returns, whether XML namespace declarations are fired not
only as
ContentHandler.startPrefixMapping(String, String)
as events, but as attributes in
ContentHandler.startElement(String, String, String, org.xml.sax.Attributes)
events as well.
|
void | setFiringStartDocument(boolean pIsFiringStartDocument) - Sets, whether the bean schema writer is firing the
ContentHandler.startDocument() , and
ContentHandler.endDocument() events.
|
void | setFiringXmlnsAttributes(boolean pFiringXmlnsAttributes) - Sets, whether XML namespace declarations are fired not
only as
ContentHandler.startPrefixMapping(String, String)
as events, but as attributes in
ContentHandler.startElement(String, String, String, org.xml.sax.Attributes)
events as well.
|
void | write(BeanInfo pBeanInfo, ContentHandler pHandler) - Writes the XML schema to the given content handler.
|
protected void | writeElement(ContentHandler pHandler, BeanInfo pBeanInfo)
|
BeanSchemaWriter
public BeanSchemaWriter(BeanInfoFactory pFactory)
Creates a new instance.
isFiringStartDocument
public boolean isFiringStartDocument()
Returns, whether the bean schema writer is firing the
ContentHandler.startDocument()
, and
ContentHandler.endDocument()
events. By default,
it does.
isFiringXmlnsAttributes
public boolean isFiringXmlnsAttributes()
Returns, whether XML namespace declarations are fired not
only as ContentHandler.startPrefixMapping(String, String)
as events, but as attributes in
ContentHandler.startElement(String, String, String, org.xml.sax.Attributes)
events as well. Defaults to true.
setFiringStartDocument
public void setFiringStartDocument(boolean pIsFiringStartDocument)
Sets, whether the bean schema writer is firing the
ContentHandler.startDocument()
, and
ContentHandler.endDocument()
events. By default,
it does.
setFiringXmlnsAttributes
public void setFiringXmlnsAttributes(boolean pFiringXmlnsAttributes)
Sets, whether XML namespace declarations are fired not
only as ContentHandler.startPrefixMapping(String, String)
as events, but as attributes in
ContentHandler.startElement(String, String, String, org.xml.sax.Attributes)
events as well. Defaults to true.
write
public void write(BeanInfo pBeanInfo,
ContentHandler pHandler)
throws SAXException
Writes the XML schema to the given content handler.
writeElement
protected void writeElement(ContentHandler pHandler,
BeanInfo pBeanInfo)
throws SAXException