|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbind.xml.schema.cmp.ComponentVisitor org.jbind.xml.schema.compiler.AbstractCartridge org.jbind.xml.schema.compiler.BaseCartridge org.jbind.xml.schema.compiler.DataCartridge
Nested Class Summary | |
protected static class |
DataCartridge.RefConstraintInfo
|
Constructor Summary | |
DataCartridge(java.lang.String aCartridgeAttributePrefix,
java.lang.String aNamePrefix,
java.lang.String aNameSuffix)
|
Method Summary | |
protected abstract java.lang.String |
attributeChecker(IAnyType aType,
IAttrRefOrDecl aRefOrDecl,
MethodVariant aPropertyVariant)
|
protected abstract java.lang.String |
attributeGetter(IAnyType aType,
IAttrRefOrDecl aRefOrDecl,
MethodVariant aPropertyVariant,
boolean aUseDataClass)
|
protected abstract java.lang.String |
attributeIterator(IAnyType aType,
IAttrRefOrDecl aRefOrDecl,
MethodVariant aPropertyVariant,
boolean aUseDataClass)
|
protected abstract java.lang.String |
attributeRemover(IAnyType aType,
IAttrRefOrDecl aRefOrDecl,
MethodVariant aPropertyVariant)
|
protected abstract java.lang.String |
attributeSetter(IAnyType aType,
IAttrRefOrDecl aRefOrDecl,
MethodVariant aPropertyVariant,
boolean aUseDataClass)
|
protected abstract java.lang.String |
begin(IAnyType aType)
|
IBinding |
createBuiltInBinding(IComponent aComponent)
|
IBinding |
createGlobalAttrDeclBinding(IComponent aComponent,
java.lang.String aRootPackage,
boolean aUseBuiltInClassesOnly)
|
IBinding |
createGlobalAttrGroupBinding(IComponent aComponent,
java.lang.String aRootPackage,
boolean aUseBuiltInClassesOnly)
|
IBinding |
createGlobalElemDeclBinding(IComponent aComponent,
java.lang.String aRootPackage,
boolean aUseBuiltInClassesOnly)
|
IBinding |
createGlobalGroupDeclBinding(IComponent aComponent,
java.lang.String aRootPackage,
boolean aUseBuiltInClassesOnly)
|
IBinding |
createInnerAttrDeclBinding(IComponent aComponent,
IBinding aParentBinding,
boolean aUseBuiltInClassesOnly)
|
IBinding |
createInnerAttrGroupBinding(IComponent aComponent,
IBinding aParentBinding,
boolean aUseBuiltInClassesOnly)
|
IBinding |
createInnerAttrRefBinding(IComponent aComponent,
IBinding aParentBinding,
boolean aUseBuiltInClassesOnly)
|
IBinding |
createInnerAttrWildcardBinding(IComponent aComponent,
IBinding aParentBinding,
boolean aUseBuiltInClassesOnly)
|
IBinding |
createInnerElemDeclBinding(IComponent aComponent,
IBinding aParentBinding,
boolean aUseBuiltInClassesOnly)
|
IBinding |
createInnerElemRefBinding(IComponent aComponent,
IBinding aParentBinding,
boolean aUseBuiltInClassesOnly)
|
IBinding |
createInnerElemWildcardBinding(IComponent aComponent,
IBinding aParentBinding,
boolean aUseBuiltInClassesOnly)
|
IBinding |
createInnerGroupRefOrDeclBinding(IComponent aComponent,
IBinding aParentBinding,
boolean aUseBuiltInClassesOnly)
|
protected abstract java.lang.String |
declaration(IAnyType aType)
|
protected abstract java.lang.String |
doGetBuiltInPackage()
|
protected void |
doVisitAnyTypeEnd(IAnyType aType)
|
protected boolean |
doVisitAnyTypeStart(IAnyType aType)
|
protected abstract java.lang.String |
elementChecker(IAnyType aType,
IElemRefOrDecl aRefOrDecl,
MethodVariant aPropertyVariant)
|
protected abstract java.lang.String |
elementCreator(IAnyType aType,
IElemRefOrDecl aRefOrDecl,
MethodVariant aPropertyVariant)
|
protected abstract java.lang.String |
elementCreatorWithType(IAnyType aType,
IElemRefOrDecl aRefOrDecl,
MethodVariant aPropertyVariant)
|
protected abstract java.lang.String |
elementGetter(IAnyType aType,
IElemRefOrDecl aRefOrDecl,
MethodVariant aPropertyVariant,
boolean aUseDataClass)
|
protected abstract java.lang.String |
elementIterator(IAnyType aType,
IElemRefOrDecl aRefOrDecl,
MethodVariant aPropertyVariant,
boolean aUseDataClass)
|
protected abstract java.lang.String |
elementRemover(IAnyType aType,
IElemRefOrDecl aRefOrDecl,
MethodVariant aPropertyVariant)
|
IMessage |
getEditHint(java.io.File aFile,
IComponent aComponent)
Gets a message that is output if a file generated by this cartridge must be edited manually. |
protected java.lang.String |
interfaceName(IAnyType aType)
|
boolean |
isUpToDate(java.io.Reader aReader,
IFileInfo aFileInfo)
Checks if the previous code is up to date. |
boolean |
overwrite()
Determines if any previous code is overwritten. |
protected java.lang.String |
pluralForm(java.lang.String aPropertyName)
Get the plural form of a property name. |
protected java.lang.String |
propertyName(IDataRefOrDecl anAttrOrElem)
Gets the property name of the decl. |
protected abstract java.lang.String |
referenceGetter(IAnyType aType,
DataCartridge.RefConstraintInfo aConstraintInfo,
MethodVariant aPropertyVariant)
|
protected abstract java.lang.String |
referenceIterator(IAnyType aType,
DataCartridge.RefConstraintInfo aConstraintInfo,
MethodVariant aPropertyVariant)
|
protected java.lang.String |
simpleStorageObjectTypeName(IAnyType aType)
|
protected java.lang.String |
simpleTypeName(IAnyType aType,
boolean aUseDataClass)
|
protected java.lang.String |
ssoAccessor(java.lang.Class aClass)
|
protected abstract boolean |
treatInherited()
|
protected abstract boolean |
treatMethods(IAnyType aType)
Checks if code for methods is to be created. |
protected abstract java.lang.String |
typeComment(IAnyType aType)
|
protected boolean |
useDataClass(IDataRefOrDecl aRefOrDecl)
|
protected abstract java.lang.String |
xPathMethod(IAnyType aType,
IXPathMethod aMethod,
MethodVariant aPropertyVariant)
|
Methods inherited from class org.jbind.xml.schema.compiler.AbstractCartridge |
constant, getBinding, getCartridgeNo, getInnerName, getNameForPackage, getSubPackage, getUsableFqName, setCartridgeNo |
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.schema.compiler.IBinder |
createGlobalAnyTypeBinding, createInnerAnyTypeBinding |
Constructor Detail |
public DataCartridge(java.lang.String aCartridgeAttributePrefix, java.lang.String aNamePrefix, java.lang.String aNameSuffix)
Method Detail |
public boolean overwrite()
ICartridge
true
iff previous code is overwritten.public boolean isUpToDate(java.io.Reader aReader, IFileInfo aFileInfo) throws java.io.IOException
ICartridge
aReader
- (required). Reads the previous code.aFileInfo
- (required). The file info returned from the generate
method.
true
iff the previous code is up to date.
java.io.IOException
public IMessage getEditHint(java.io.File aFile, IComponent aComponent)
ICartridge
overwrite
returns false
.
aFile
- (required).aComponent
- (required).
public IBinding createGlobalAttrDeclBinding(IComponent aComponent, java.lang.String aRootPackage, boolean aUseBuiltInClassesOnly)
public IBinding createGlobalGroupDeclBinding(IComponent aComponent, java.lang.String aRootPackage, boolean aUseBuiltInClassesOnly)
public IBinding createGlobalElemDeclBinding(IComponent aComponent, java.lang.String aRootPackage, boolean aUseBuiltInClassesOnly)
public IBinding createGlobalAttrGroupBinding(IComponent aComponent, java.lang.String aRootPackage, boolean aUseBuiltInClassesOnly)
public IBinding createBuiltInBinding(IComponent aComponent)
public IBinding createInnerAttrRefBinding(IComponent aComponent, IBinding aParentBinding, boolean aUseBuiltInClassesOnly)
public IBinding createInnerAttrDeclBinding(IComponent aComponent, IBinding aParentBinding, boolean aUseBuiltInClassesOnly)
public IBinding createInnerAttrWildcardBinding(IComponent aComponent, IBinding aParentBinding, boolean aUseBuiltInClassesOnly)
public IBinding createInnerGroupRefOrDeclBinding(IComponent aComponent, IBinding aParentBinding, boolean aUseBuiltInClassesOnly)
public IBinding createInnerElemRefBinding(IComponent aComponent, IBinding aParentBinding, boolean aUseBuiltInClassesOnly)
public IBinding createInnerElemDeclBinding(IComponent aComponent, IBinding aParentBinding, boolean aUseBuiltInClassesOnly)
public IBinding createInnerElemWildcardBinding(IComponent aComponent, IBinding aParentBinding, boolean aUseBuiltInClassesOnly)
public IBinding createInnerAttrGroupBinding(IComponent aComponent, IBinding aParentBinding, boolean aUseBuiltInClassesOnly)
protected abstract java.lang.String doGetBuiltInPackage()
protected boolean doVisitAnyTypeStart(IAnyType aType) throws XmlException
doVisitAnyTypeStart
in class ComponentVisitor
XmlException
protected void doVisitAnyTypeEnd(IAnyType aType)
doVisitAnyTypeEnd
in class ComponentVisitor
protected boolean useDataClass(IDataRefOrDecl aRefOrDecl)
protected java.lang.String propertyName(IDataRefOrDecl anAttrOrElem)
anAttrOrElem
- (required).
protected abstract java.lang.String typeComment(IAnyType aType)
protected abstract java.lang.String declaration(IAnyType aType)
protected abstract java.lang.String begin(IAnyType aType)
protected abstract java.lang.String elementGetter(IAnyType aType, IElemRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant, boolean aUseDataClass)
protected abstract java.lang.String elementChecker(IAnyType aType, IElemRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant)
protected abstract java.lang.String elementRemover(IAnyType aType, IElemRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant)
protected abstract java.lang.String elementCreator(IAnyType aType, IElemRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant)
protected abstract java.lang.String elementCreatorWithType(IAnyType aType, IElemRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant)
protected abstract java.lang.String elementIterator(IAnyType aType, IElemRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant, boolean aUseDataClass)
protected abstract java.lang.String attributeGetter(IAnyType aType, IAttrRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant, boolean aUseDataClass)
protected abstract java.lang.String attributeChecker(IAnyType aType, IAttrRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant)
protected abstract java.lang.String attributeRemover(IAnyType aType, IAttrRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant)
protected abstract java.lang.String attributeSetter(IAnyType aType, IAttrRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant, boolean aUseDataClass)
protected abstract java.lang.String attributeIterator(IAnyType aType, IAttrRefOrDecl aRefOrDecl, MethodVariant aPropertyVariant, boolean aUseDataClass)
protected abstract java.lang.String referenceGetter(IAnyType aType, DataCartridge.RefConstraintInfo aConstraintInfo, MethodVariant aPropertyVariant)
protected abstract java.lang.String referenceIterator(IAnyType aType, DataCartridge.RefConstraintInfo aConstraintInfo, MethodVariant aPropertyVariant)
protected abstract java.lang.String xPathMethod(IAnyType aType, IXPathMethod aMethod, MethodVariant aPropertyVariant)
protected abstract boolean treatMethods(IAnyType aType)
aType
- (required).
true
iff code for methods is to be created.protected abstract boolean treatInherited()
protected java.lang.String simpleTypeName(IAnyType aType, boolean aUseDataClass)
protected java.lang.String interfaceName(IAnyType aType)
protected java.lang.String ssoAccessor(java.lang.Class aClass)
protected java.lang.String simpleStorageObjectTypeName(IAnyType aType)
protected java.lang.String pluralForm(java.lang.String aPropertyName)
aPropertyName
- (required).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |