|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ispsoft.jaxme.generator.decorators.ElementDecoratorFactoryImpl de.ispsoft.jaxme.generator.parselets.SimpleParseletDecoratorFactory
A factory for simple elements or attributes.
Constructor Summary | |
SimpleParseletDecoratorFactory()
Creates a new instance of SimpleParseletDecoratorFactory |
Method Summary | |
ElementDecorator |
getElementDecorator(SchemaAnnotationOwner pParent,
SchemaElement pSchemaElement,
ParserData pParserData,
org.w3c.dom.Element pNode)
Called for creating a new ElementDecorator, which is attached to an element or attribute pSchemaElement .
|
java.lang.String |
getParseletClassName()
Returns the Parselet class name. |
java.lang.String |
getParseletPackageName()
Returns the package name of the generated Parselet class. |
SourceWriter |
getSourceWriter(Schema pSchema,
ParserData pParserData,
org.w3c.dom.Element pElement)
Called for creating a SourceWriter. |
void |
setParseletClassName(java.lang.String pParseletClassName)
Sets the Parselet class name. |
void |
setParseletPackageName(java.lang.String pParseletPackageName)
Sets the Parselet package name. |
Methods inherited from class de.ispsoft.jaxme.generator.decorators.ElementDecoratorFactoryImpl |
getDecoratorDeclaration, getSourceWriterDeclaration, init, isDecoratorDeclaration, isSourceWriterDeclaration, newDefaultElementDecorator, newElementDecorator, newSourceWriter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleParseletDecoratorFactory()
Method Detail |
public java.lang.String getParseletClassName()
Returns the Parselet class name.
public void setParseletClassName(java.lang.String pParseletClassName)
Sets the Parselet class name.
public void setParseletPackageName(java.lang.String pParseletPackageName)
Sets the Parselet package name.
public java.lang.String getParseletPackageName()
Returns the package name of the generated Parselet class.
public SourceWriter getSourceWriter(Schema pSchema, ParserData pParserData, org.w3c.dom.Element pElement)
Called for creating a SourceWriter.
getSourceWriter
in interface ElementDecoratorFactory
getSourceWriter
in class ElementDecoratorFactoryImpl
public ElementDecorator getElementDecorator(SchemaAnnotationOwner pParent, SchemaElement pSchemaElement, ParserData pParserData, org.w3c.dom.Element pNode) throws SchemaException
Called for creating a new ElementDecorator, which
is attached to an element or attribute pSchemaElement
.
The ElementDecorator may register decorator specific data to the
given pSchemaElement
and/or pParserData
.
getElementDecorator
in interface ElementDecoratorFactory
getElementDecorator
in class ElementDecoratorFactoryImpl
pParent
- The elements or attributes parent. An instance
of Schema, if this is a root element or attribute. Otherwise
an instance of SchemaElement.pSchemaElement
- The element or attribute being decorated.pParserData
- An object for storing data that applies
recursively.pNode
- The DOM node defining the element or attribute.
pSchemaElement
or null, if no decorator
should be attached.
SchemaException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |