org.jbind.xml.schema.compiler
Class DataInterfaceCartridge

java.lang.Object
  extended byorg.jbind.xml.schema.cmp.ComponentVisitor
      extended byorg.jbind.xml.schema.compiler.AbstractCartridge
          extended byorg.jbind.xml.schema.compiler.BaseCartridge
              extended byorg.jbind.xml.schema.compiler.DataCartridge
                  extended byorg.jbind.xml.schema.compiler.DataInterfaceCartridge
All Implemented Interfaces:
IBinder, ICartridge, IComponentVisitor

public class DataInterfaceCartridge
extends DataCartridge


Nested Class Summary
 
Nested classes inherited from class org.jbind.xml.schema.compiler.DataCartridge
DataCartridge.RefConstraintInfo
 
Constructor Summary
DataInterfaceCartridge()
           
 
Method Summary
protected  java.lang.String attributeChecker(IAnyType aType, IAttrRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant)
           
protected  java.lang.String attributeGetter(IAnyType aType, IAttrRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant, boolean aUseDataClass)
           
protected  java.lang.String attributeIterator(IAnyType aType, IAttrRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant, boolean aUseDataClass)
           
protected  java.lang.String attributeRemover(IAnyType aType, IAttrRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant)
           
protected  java.lang.String attributeSetter(IAnyType aType, IAttrRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant, boolean aUseDataClass)
           
protected  java.lang.String begin(IAnyType aType)
           
 IBinding createGlobalAnyTypeBinding(IComponent aComponent, java.lang.String aRootPackage, boolean aUseBuiltInClassesOnly)
           
 IBinding createInnerAnyTypeBinding(IComponent aComponent, IBinding aParentBinding, boolean aUseBuiltInClassesOnly)
           
protected  java.lang.String declaration(IAnyType aType)
           
protected  java.lang.String doGetBuiltInPackage()
           
protected  java.lang.String elementChecker(IAnyType aType, IElemRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant)
           
protected  java.lang.String elementCreator(IAnyType aType, IElemRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant)
           
protected  java.lang.String elementCreatorWithType(IAnyType aType, IElemRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant)
           
protected  java.lang.String elementGetter(IAnyType aType, IElemRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant, boolean aUseDataClass)
           
protected  java.lang.String elementIterator(IAnyType aType, IElemRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant, boolean aUseDataClass)
           
protected  java.lang.String elementRemover(IAnyType aType, IElemRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant)
           
protected  java.lang.String interfaceOrClass()
           
protected  java.lang.String referenceGetter(IAnyType aType, DataCartridge.RefConstraintInfo aConstraintInfo, MethodVariant aPropertyVariant)
           
protected  java.lang.String referenceIterator(IAnyType aType, DataCartridge.RefConstraintInfo aConstraintInfo, MethodVariant aPropertyVariant)
           
protected  boolean treatInherited()
           
protected  boolean treatMethods(IAnyType aType)
          Checks if code for methods is to be created.
protected  java.lang.String typeComment(IAnyType aType)
           
protected  java.lang.String xPathMethod(IAnyType aType, IXPathMethod aMethod, MethodVariant aVariant)
           
 
Methods inherited from class org.jbind.xml.schema.compiler.DataCartridge
createBuiltInBinding, createGlobalAttrDeclBinding, createGlobalAttrGroupBinding, createGlobalElemDeclBinding, createGlobalGroupDeclBinding, createInnerAttrDeclBinding, createInnerAttrGroupBinding, createInnerAttrRefBinding, createInnerAttrWildcardBinding, createInnerElemDeclBinding, createInnerElemRefBinding, createInnerElemWildcardBinding, createInnerGroupRefOrDeclBinding, doVisitAnyTypeEnd, doVisitAnyTypeStart, getEditHint, interfaceName, isUpToDate, overwrite, pluralForm, propertyName, simpleStorageObjectTypeName, simpleTypeName, ssoAccessor, useDataClass
 
Methods inherited from class org.jbind.xml.schema.compiler.BaseCartridge
addIndent, behaviourBaseClass, doVisitAttrDescEnd, doVisitAttrDescStart, doVisitAttrGroupDescEnd, doVisitAttrGroupDescStart, doVisitElemDescEnd, doVisitElemDescStart, doVisitElemGroupDescEnd, doVisitElemGroupDescStart, generate, getBehaviourClassCartridge, getBehaviourInterfaceCartridge, getDataClassCartridge, getDataInterfaceCartridge, getNamePrefix, getNameSuffix, initCartridge, removeIndent, setNotEmpty, setOuterComponent, staticOrPublic, writeLn, writeMultiLn
 
Methods inherited from class org.jbind.xml.schema.compiler.AbstractCartridge
constant, getBinding, getCartridgeNo, getInnerName, getNameForPackage, getSubPackage, getUsableFqName, setCartridgeNo
 
Methods inherited from class org.jbind.xml.schema.cmp.ComponentVisitor
doAfterVisit, doBeforeVisit, doVisitAllDeclEnd, doVisitAllDeclStart, doVisitAllDescEnd, doVisitAllDescStart, doVisitAllRefEnd, doVisitAllRefStart, doVisitAnySimpleTypeEnd, doVisitAnySimpleTypeStart, doVisitAtomicTypeEnd, doVisitAtomicTypeStart, doVisitAttrDeclEnd, doVisitAttrDeclStart, doVisitAttrGroupDeclEnd, doVisitAttrGroupDeclStart, doVisitAttrGroupRefEnd, doVisitAttrGroupRefStart, doVisitAttrRefEnd, doVisitAttrRefOrDeclEnd, doVisitAttrRefOrDeclStart, doVisitAttrRefStart, doVisitAttrWildcardEnd, doVisitAttrWildcardStart, doVisitChoiceDeclEnd, doVisitChoiceDeclStart, doVisitChoiceDescEnd, doVisitChoiceDescStart, doVisitChoiceRefEnd, doVisitChoiceRefStart, doVisitComplexTypeEnd, doVisitComplexTypeStart, doVisitComponentEnd, doVisitComponentStart, doVisitContentDescEnd, doVisitContentDescStart, doVisitElemDeclEnd, doVisitElemDeclStart, doVisitElemRefEnd, doVisitElemRefOrDeclEnd, doVisitElemRefOrDeclStart, doVisitElemRefStart, doVisitElemWildcardEnd, doVisitElemWildcardStart, doVisitListTypeEnd, doVisitListTypeStart, doVisitNotationEnd, doVisitNotationStart, doVisitSequenceDeclEnd, doVisitSequenceDeclStart, doVisitSequenceDescEnd, doVisitSequenceDescStart, doVisitSequenceRefEnd, doVisitSequenceRefStart, doVisitUnionTypeEnd, doVisitUnionTypeStart, shallVisitSubComponents, visitAllDeclEnd, visitAllDeclStart, visitAllRefEnd, visitAllRefStart, visitAnySimpleTypeEnd, visitAnySimpleTypeStart, visitAnyTypeEnd, visitAnyTypeStart, visitAtomicTypeEnd, visitAtomicTypeStart, visitAttrDeclEnd, visitAttrDeclStart, visitAttrGroupDeclEnd, visitAttrGroupDeclStart, visitAttrGroupRefEnd, visitAttrGroupRefStart, visitAttrRefEnd, visitAttrRefStart, visitAttrWildcardEnd, visitAttrWildcardStart, visitChoiceDeclEnd, visitChoiceDeclStart, visitChoiceRefEnd, visitChoiceRefStart, visitComplexTypeEnd, visitComplexTypeStart, visitElemDeclEnd, visitElemDeclStart, visitElemRefEnd, visitElemRefStart, visitElemWildcardEnd, visitElemWildcardStart, visitListTypeEnd, visitListTypeStart, visitNotationEnd, visitNotationStart, visitSequenceDeclEnd, visitSequenceDeclStart, visitSequenceRefEnd, visitSequenceRefStart, visitUnionTypeEnd, visitUnionTypeStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jbind.xml.core.cmp.IComponentVisitor
shallVisitSubComponents, visitAllDeclEnd, visitAllDeclStart, visitAllRefEnd, visitAllRefStart, visitAnySimpleTypeEnd, visitAnySimpleTypeStart, visitAnyTypeEnd, visitAnyTypeStart, visitAtomicTypeEnd, visitAtomicTypeStart, visitAttrDeclEnd, visitAttrDeclStart, visitAttrGroupDeclEnd, visitAttrGroupDeclStart, visitAttrGroupRefEnd, visitAttrGroupRefStart, visitAttrRefEnd, visitAttrRefStart, visitAttrWildcardEnd, visitAttrWildcardStart, visitChoiceDeclEnd, visitChoiceDeclStart, visitChoiceRefEnd, visitChoiceRefStart, visitComplexTypeEnd, visitComplexTypeStart, visitElemDeclEnd, visitElemDeclStart, visitElemRefEnd, visitElemRefStart, visitElemWildcardEnd, visitElemWildcardStart, visitListTypeEnd, visitListTypeStart, visitNotationEnd, visitNotationStart, visitSequenceDeclEnd, visitSequenceDeclStart, visitSequenceRefEnd, visitSequenceRefStart, visitUnionTypeEnd, visitUnionTypeStart
 

Constructor Detail

DataInterfaceCartridge

public DataInterfaceCartridge()
Method Detail

createGlobalAnyTypeBinding

public IBinding createGlobalAnyTypeBinding(IComponent aComponent,
                                           java.lang.String aRootPackage,
                                           boolean aUseBuiltInClassesOnly)

createInnerAnyTypeBinding

public IBinding createInnerAnyTypeBinding(IComponent aComponent,
                                          IBinding aParentBinding,
                                          boolean aUseBuiltInClassesOnly)

doGetBuiltInPackage

protected java.lang.String doGetBuiltInPackage()
Specified by:
doGetBuiltInPackage in class DataCartridge

interfaceOrClass

protected java.lang.String interfaceOrClass()
Specified by:
interfaceOrClass in class BaseCartridge

treatMethods

protected boolean treatMethods(IAnyType aType)
Description copied from class: DataCartridge
Checks if code for methods is to be created. No method code is generated for abstract data classes. Yet the abstract data class itself is to be created because it may contain inner classes that are not abstract.

Specified by:
treatMethods in class DataCartridge
Parameters:
aType - (required).
Returns:
Returns true iff code for methods is to be created.

treatInherited

protected boolean treatInherited()
Specified by:
treatInherited in class DataCartridge

declaration

protected java.lang.String declaration(IAnyType aType)
Specified by:
declaration in class DataCartridge

begin

protected java.lang.String begin(IAnyType aType)
Specified by:
begin in class DataCartridge

elementGetter

protected java.lang.String elementGetter(IAnyType aType,
                                         IElemRefOrDecl aRefOrDecl,
                                         MethodVariant aPropertyVariant,
                                         boolean aUseDataClass)
Specified by:
elementGetter in class DataCartridge

attributeGetter

protected java.lang.String attributeGetter(IAnyType aType,
                                           IAttrRefOrDecl aRefOrDecl,
                                           MethodVariant aPropertyVariant,
                                           boolean aUseDataClass)
Specified by:
attributeGetter in class DataCartridge

elementChecker

protected java.lang.String elementChecker(IAnyType aType,
                                          IElemRefOrDecl aRefOrDecl,
                                          MethodVariant aPropertyVariant)
Specified by:
elementChecker in class DataCartridge

attributeChecker

protected java.lang.String attributeChecker(IAnyType aType,
                                            IAttrRefOrDecl aRefOrDecl,
                                            MethodVariant aPropertyVariant)
Specified by:
attributeChecker in class DataCartridge

elementRemover

protected java.lang.String elementRemover(IAnyType aType,
                                          IElemRefOrDecl aRefOrDecl,
                                          MethodVariant aPropertyVariant)
Specified by:
elementRemover in class DataCartridge

attributeRemover

protected java.lang.String attributeRemover(IAnyType aType,
                                            IAttrRefOrDecl aRefOrDecl,
                                            MethodVariant aPropertyVariant)
Specified by:
attributeRemover in class DataCartridge

elementCreator

protected java.lang.String elementCreator(IAnyType aType,
                                          IElemRefOrDecl aRefOrDecl,
                                          MethodVariant aPropertyVariant)
Specified by:
elementCreator in class DataCartridge

elementCreatorWithType

protected java.lang.String elementCreatorWithType(IAnyType aType,
                                                  IElemRefOrDecl aRefOrDecl,
                                                  MethodVariant aPropertyVariant)
Specified by:
elementCreatorWithType in class DataCartridge

elementIterator

protected java.lang.String elementIterator(IAnyType aType,
                                           IElemRefOrDecl aRefOrDecl,
                                           MethodVariant aPropertyVariant,
                                           boolean aUseDataClass)
Specified by:
elementIterator in class DataCartridge

attributeIterator

protected java.lang.String attributeIterator(IAnyType aType,
                                             IAttrRefOrDecl aRefOrDecl,
                                             MethodVariant aPropertyVariant,
                                             boolean aUseDataClass)
Specified by:
attributeIterator in class DataCartridge

attributeSetter

protected java.lang.String attributeSetter(IAnyType aType,
                                           IAttrRefOrDecl aRefOrDecl,
                                           MethodVariant aPropertyVariant,
                                           boolean aUseDataClass)
Specified by:
attributeSetter in class DataCartridge

referenceGetter

protected java.lang.String referenceGetter(IAnyType aType,
                                           DataCartridge.RefConstraintInfo aConstraintInfo,
                                           MethodVariant aPropertyVariant)
Specified by:
referenceGetter in class DataCartridge

referenceIterator

protected java.lang.String referenceIterator(IAnyType aType,
                                             DataCartridge.RefConstraintInfo aConstraintInfo,
                                             MethodVariant aPropertyVariant)
Specified by:
referenceIterator in class DataCartridge

xPathMethod

protected java.lang.String xPathMethod(IAnyType aType,
                                       IXPathMethod aMethod,
                                       MethodVariant aVariant)
Specified by:
xPathMethod in class DataCartridge

typeComment

protected java.lang.String typeComment(IAnyType aType)
Specified by:
typeComment in class DataCartridge