de.ispsoft.jaxme.generator.parselets
Class ComplexParseletDecorator

java.lang.Object
  extended byde.ispsoft.jaxme.generator.parselets.ParseletDecoratorImpl
      extended byde.ispsoft.jaxme.generator.parselets.ComplexParseletDecorator
All Implemented Interfaces:
ElementDecorator, ParseletDecorator

public class ComplexParseletDecorator
extends ParseletDecoratorImpl

Default implementation of a ParseletDecorator for complex elements. Creates a ComplexParselet.

Author:
Jochen Wiedmann

Constructor Summary
ComplexParseletDecorator()
          Creates a new instance of ComplexParseletDecorator.
 
Method Summary
 java.lang.String getParseletClassName()
          Returns the class name of the generated Parselet class.
 java.lang.String getParseletPackageName()
          Returns the package name of the generated Parselet class.
 void init(SchemaAnnotationOwner pParent, SchemaElement pElement, ParserData pParserData, org.w3c.dom.Element pNode)
          Initializes the ParseletDecorator with the settings being read from the various arguments.
 
Methods inherited from class de.ispsoft.jaxme.generator.parselets.ParseletDecoratorImpl
getNewParseletForParse, getNewParseletForSerialize, getParseletQName, parseAppInfoNode, setParseletClassName, setParseletPackageName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComplexParseletDecorator

public ComplexParseletDecorator()

Creates a new instance of ComplexParseletDecorator.

Method Detail

init

public void init(SchemaAnnotationOwner pParent,
                 SchemaElement pElement,
                 ParserData pParserData,
                 org.w3c.dom.Element pNode)
          throws SchemaException

Initializes the ParseletDecorator with the settings being read from the various arguments.

Specified by:
init in interface ParseletDecorator
Overrides:
init in class ParseletDecoratorImpl
Throws:
SchemaException

getParseletPackageName

public java.lang.String getParseletPackageName()

Returns the package name of the generated Parselet class. Defaults to the package name of the generated JMAnyElement.

Specified by:
getParseletPackageName in interface ParseletDecorator
Overrides:
getParseletPackageName in class ParseletDecoratorImpl

getParseletClassName

public java.lang.String getParseletClassName()

Returns the class name of the generated Parselet class. Defaults to the name of the generated JMAnyElement class with a concatenated "Parselet".

Specified by:
getParseletClassName in interface ParseletDecorator
Overrides:
getParseletClassName in class ParseletDecoratorImpl