|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.jaxme.js.beanreader.BeanSchemaWriter
public class BeanSchemaWriter
The BeanSchemaWriter
is an object, which takes
as input an instance of JavaSource
, and creates
a corresponding instance of XML Schema.
Constructor Summary | |
---|---|
BeanSchemaWriter(BeanInfoFactory pFactory)
Creates a new instance. |
Method Summary | |
---|---|
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,
org.xml.sax.ContentHandler pHandler)
Writes the XML schema to the given content handler. |
protected void |
writeElement(org.xml.sax.ContentHandler pHandler,
BeanInfo pBeanInfo)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanSchemaWriter(BeanInfoFactory pFactory)
Method Detail |
---|
public boolean isFiringStartDocument()
ContentHandler.startDocument()
, and
ContentHandler.endDocument()
events. By default,
it does.
public void setFiringStartDocument(boolean pIsFiringStartDocument)
ContentHandler.startDocument()
, and
ContentHandler.endDocument()
events. By default,
it does.
public boolean isFiringXmlnsAttributes()
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.
public void setFiringXmlnsAttributes(boolean pFiringXmlnsAttributes)
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.
protected void writeElement(org.xml.sax.ContentHandler pHandler, BeanInfo pBeanInfo) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void write(BeanInfo pBeanInfo, org.xml.sax.ContentHandler pHandler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
- Invoking the target handler failed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |