|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ispsoft.jaxme.generator.ConfigurableImpl de.ispsoft.jaxme.generator.SchemaReaderImpl de.ispsoft.jaxme.generator.XsdSchemaReader
A SchemaReader for XML Schemas.
Field Summary | |
static java.lang.String |
JAXME_SCHEMA_URI
The JaxMe standard namespace |
static java.lang.String |
XML_SCHEMA_URI
The supported XML Schema namespace |
Constructor Summary | |
XsdSchemaReader()
Creates new XsdSchemaReader |
Method Summary | |
void |
addDecorators(SchemaAnnotationOwner pParent,
SchemaElement pSchemaElement,
ParserData pParserData,
org.w3c.dom.Element pElement)
Adds decorators to a generated element or attribute. |
void |
addElementDecoratorFactory(ElementDecoratorFactory pFactory,
Schema pSchema,
ParserData pParserData,
org.w3c.dom.Element pSchemaNode)
Adds a new ElementDecoratorFactory to the list of such factories. |
void |
clearElementDecoratorFactories()
Clears the ElementDecoratorFactory list. |
static java.lang.String |
findDefaultNamespaceURI(org.w3c.dom.Element pElement)
|
protected SchemaElement |
findElement(java.lang.String pElementName,
org.w3c.dom.Element pElement,
Schema pSchema,
ParserData pParserData)
|
static java.lang.String |
findNamespaceURI(java.lang.String pValue,
org.w3c.dom.Element pElement)
|
protected SchemaType |
findType(java.lang.String pTypeName,
org.w3c.dom.Element pElement,
ParserData pParserData,
boolean pAcceptDefault)
|
protected java.lang.String |
getDefaultExtendsClassName()
|
void |
getDefaults(ParserData pParserData,
org.w3c.dom.Element pNode)
Reads the jaxme:defaults declaration. |
ElementDecoratorFactory[] |
getElementDecoratorFactories()
Returns the array of registered ElementDecoratorFactory
instances. |
org.xml.sax.InputSource |
getInputSource(java.lang.String pBaseSystemId,
java.lang.String pSystemId)
Creates a new InputSource, based on the given URLs. |
protected Schema |
getSchema()
Returns the schema being parsed. |
protected org.w3c.dom.Element |
getSchemaNode()
Returns the "schema" Node being parsed. |
ParserData |
newParserData(java.lang.String pTargetNamespace)
Returns a ParserData instance. |
protected SchemaComplexElement |
newSchemaComplexElement(SchemaAnnotationOwner pParent)
|
Schema |
parse(org.xml.sax.InputSource pSource)
Called for parsing a schema definition stored in the given InputStream. |
Schema |
parse(org.w3c.dom.Node pDocument,
java.lang.String pSystemId)
Called for parsing a schema definition from the given DOM tree. |
protected void |
parseAppInfoDefaultNode(ParserData pParserData,
org.w3c.dom.Element pNode)
|
protected void |
parseAppInfoNode(SchemaElement pSchemaElement,
ParserData pParserData,
org.w3c.dom.Element pNode)
|
void |
parseAttributeAttributes(SchemaAnnotationOwner pParent,
SchemaAttribute pAttribute,
org.w3c.dom.Element pElement,
ParserData pParserData)
Parses a single attribute definition. |
void |
parseAttributeList(SchemaComplexElement pComplexElement,
org.w3c.dom.Element pElement,
ParserData pParserData)
Called for parsing the complexType's attribute list. |
void |
parseComplexElement(SchemaComplexElement pComplexElement,
org.w3c.dom.Element pElement,
ParserData pParserData)
Called for parsing the complexType declaration. |
SchemaElement |
parseElement(SchemaAnnotationOwner pParent,
org.w3c.dom.Element pElement,
ParserData pParserData,
boolean pGlobal)
Called for parsing a single schema element from the given DOM tree. |
void |
parseElementAttributes(SchemaAnnotationOwner pParent,
SchemaElement pSchemaElement,
org.w3c.dom.Element pElement,
ParserData pParserData,
boolean pGlobal)
Called for parsing the standard attributes from an element or attribute definition. |
protected void |
parseElementList(SchemaComplexElement pComplexElement,
org.w3c.dom.Element pElement,
ParserData pParserData)
|
void |
parseSimpleType(SchemaAbstractSimpleElement pSimpleElement,
org.w3c.dom.Element pElement,
ParserData pParserData)
Called for parsing the simpleType declaration. |
protected void |
setSchema(Schema pSchema)
Sets the schema being created. |
protected void |
setSchemaNode(org.w3c.dom.Element pSchemaNode)
Sets the "schema" Node being parsed. |
Methods inherited from class de.ispsoft.jaxme.generator.SchemaReaderImpl |
getGenerator, parse, setGenerator |
Methods inherited from class de.ispsoft.jaxme.generator.ConfigurableImpl |
getOption, getOptions, getOptionValue, setOption |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.ispsoft.jaxme.generator.Configurable |
getOption, getOptions, getOptionValue, setOption |
Field Detail |
public static final java.lang.String XML_SCHEMA_URI
The supported XML Schema namespace
public static final java.lang.String JAXME_SCHEMA_URI
The JaxMe standard namespace
Constructor Detail |
public XsdSchemaReader()
Method Detail |
protected java.lang.String getDefaultExtendsClassName()
public ParserData newParserData(java.lang.String pTargetNamespace)
Returns a ParserData instance.
public void parseSimpleType(SchemaAbstractSimpleElement pSimpleElement, org.w3c.dom.Element pElement, ParserData pParserData) throws SchemaException
Called for parsing the simpleType declaration.
SchemaException
public void addDecorators(SchemaAnnotationOwner pParent, SchemaElement pSchemaElement, ParserData pParserData, org.w3c.dom.Element pElement) throws SchemaException
Adds decorators to a generated element or attribute.
SchemaException
public void parseAttributeAttributes(SchemaAnnotationOwner pParent, SchemaAttribute pAttribute, org.w3c.dom.Element pElement, ParserData pParserData) throws java.lang.Exception
Parses a single attribute definition.
java.lang.Exception
public void parseAttributeList(SchemaComplexElement pComplexElement, org.w3c.dom.Element pElement, ParserData pParserData) throws java.lang.Exception
Called for parsing the complexType's attribute list.
java.lang.Exception
protected void parseElementList(SchemaComplexElement pComplexElement, org.w3c.dom.Element pElement, ParserData pParserData) throws java.lang.Exception
java.lang.Exception
public void parseComplexElement(SchemaComplexElement pComplexElement, org.w3c.dom.Element pElement, ParserData pParserData) throws java.lang.Exception
Called for parsing the complexType declaration.
java.lang.Exception
protected SchemaType findType(java.lang.String pTypeName, org.w3c.dom.Element pElement, ParserData pParserData, boolean pAcceptDefault) throws SchemaException
SchemaException
protected SchemaElement findElement(java.lang.String pElementName, org.w3c.dom.Element pElement, Schema pSchema, ParserData pParserData) throws SchemaException
SchemaException
public void parseElementAttributes(SchemaAnnotationOwner pParent, SchemaElement pSchemaElement, org.w3c.dom.Element pElement, ParserData pParserData, boolean pGlobal) throws java.lang.Exception
Called for parsing the standard attributes from an element or attribute definition.
java.lang.Exception
public SchemaElement parseElement(SchemaAnnotationOwner pParent, org.w3c.dom.Element pElement, ParserData pParserData, boolean pGlobal) throws java.lang.Exception
Called for parsing a single schema element from the given DOM tree.
java.lang.Exception
public void getDefaults(ParserData pParserData, org.w3c.dom.Element pNode) throws SchemaException
Reads the jaxme:defaults declaration.
SchemaException
protected void parseAppInfoDefaultNode(ParserData pParserData, org.w3c.dom.Element pNode) throws SchemaException
SchemaException
protected void parseAppInfoNode(SchemaElement pSchemaElement, ParserData pParserData, org.w3c.dom.Element pNode) throws java.lang.Exception
java.lang.Exception
protected void setSchemaNode(org.w3c.dom.Element pSchemaNode)
Sets the "schema" Node being parsed.
protected org.w3c.dom.Element getSchemaNode()
Returns the "schema" Node being parsed.
protected void setSchema(Schema pSchema)
Sets the schema being created.
protected Schema getSchema()
Returns the schema being parsed.
public org.xml.sax.InputSource getInputSource(java.lang.String pBaseSystemId, java.lang.String pSystemId) throws java.io.IOException
Creates a new InputSource, based on the given URLs.
java.io.IOException
public Schema parse(org.w3c.dom.Node pDocument, java.lang.String pSystemId) throws java.lang.Exception
Called for parsing a schema definition from the given DOM tree.
java.lang.Exception
public Schema parse(org.xml.sax.InputSource pSource) throws java.lang.Exception
Called for parsing a schema definition stored in the given InputStream.
parse
in interface SchemaReader
parse
in class SchemaReaderImpl
java.lang.Exception
protected SchemaComplexElement newSchemaComplexElement(SchemaAnnotationOwner pParent)
public static java.lang.String findDefaultNamespaceURI(org.w3c.dom.Element pElement)
public static java.lang.String findNamespaceURI(java.lang.String pValue, org.w3c.dom.Element pElement)
public void addElementDecoratorFactory(ElementDecoratorFactory pFactory, Schema pSchema, ParserData pParserData, org.w3c.dom.Element pSchemaNode) throws SchemaException
Adds a new ElementDecoratorFactory to the list of such factories.
SchemaException
public void clearElementDecoratorFactories()
Clears the ElementDecoratorFactory
list.
public ElementDecoratorFactory[] getElementDecoratorFactories()
Returns the array of registered ElementDecoratorFactory
instances.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |