|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.xmlc.dom.generic.GenericAccessorGenerator | +--org.enhydra.xml.xmlc.dom.lazydom.LazyDOMAccessorGenerator
Generate access methods for the Lazy DOM.
Constructor Summary | |
protected |
LazyDOMAccessorGenerator(Document document)
Constructor. |
Method Summary | |
void |
createAccessMethodInit(ElementInfo elementInfo,
java.lang.String elementVarName,
JavaCode body)
This method does nothing for the Lazy DOM. |
JavaMethod |
createAccessorMethod(ElementInfo elementInfo,
ElementInfo.AccessorInfo accessor,
boolean createDelegation,
JavaClass docClass)
Create an element accessor method (getElementXXX() or getTextXXX()). |
void |
createNullElementAccess(ElementInfo elementInfo,
JavaCode body)
Create code cached information so that element access methods return null. |
void |
createResetElementAccess(ElementInfo elementInfo,
java.lang.String nodeVarName,
JavaCode body)
Create code to reset the element access information from a node. |
JavaMethod |
createSetTextMethod(ElementInfo elementInfo,
boolean createDelegation,
JavaClass docClass)
Create the setText method for an element. |
Methods inherited from class org.enhydra.xml.xmlc.dom.generic.GenericAccessorGenerator |
getElementField, setupGetElementMethod, setupSetTextMethod |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected LazyDOMAccessorGenerator(Document document)
Method Detail |
public void createAccessMethodInit(ElementInfo elementInfo, java.lang.String elementVarName, JavaCode body)
createAccessMethodInit
in interface AccessorGenerator
createAccessMethodInit
in class GenericAccessorGenerator
elementInfo
- Information about the element.elementVarName
- The name of a variable that will contain
the element during document construction at the point that
the element is created. The type of the variable will be Element.body
- Append creation code to this code in the document builder
that is being generated.AccessorGenerator.createAccessMethodInit(org.enhydra.xml.xmlc.compiler.ElementInfo, java.lang.String, org.enhydra.xml.xmlc.codegen.JavaCode)
public void createNullElementAccess(ElementInfo elementInfo, JavaCode body)
createNullElementAccess
in interface AccessorGenerator
createNullElementAccess
in class GenericAccessorGenerator
elementInfo
- Information about the element.body
- Append creation code to this code in the document builder
that is being generated.AccessorGenerator.createNullElementAccess(org.enhydra.xml.xmlc.compiler.ElementInfo, org.enhydra.xml.xmlc.codegen.JavaCode)
public void createResetElementAccess(ElementInfo elementInfo, java.lang.String nodeVarName, JavaCode body)
createResetElementAccess
in interface AccessorGenerator
createResetElementAccess
in class GenericAccessorGenerator
elementInfo
- Information about the element.nodeVarName
- The name of the variable that will contain
element. It will be of type Node, so it must be cast.body
- Append creation code to this code in the document builder
that is being generated.AccessorGenerator.createResetElementAccess(org.enhydra.xml.xmlc.compiler.ElementInfo, java.lang.String, org.enhydra.xml.xmlc.codegen.JavaCode)
public JavaMethod createAccessorMethod(ElementInfo elementInfo, ElementInfo.AccessorInfo accessor, boolean createDelegation, JavaClass docClass)
createAccessorMethod
in interface AccessorGenerator
createAccessorMethod
in class GenericAccessorGenerator
elementInfo
- Information about the element.accessor
- Infomation about the accessor to create.createDelegation
- Should delegation support be created?docClass
- The document class that is being generated.
The method is added to this class.
AccessorGenerator#createGetElementMethod
public JavaMethod createSetTextMethod(ElementInfo elementInfo, boolean createDelegation, JavaClass docClass)
createSetTextMethod
in interface AccessorGenerator
createSetTextMethod
in class GenericAccessorGenerator
elementInfo
- Information about the element.createDelegation
- Should delegation support be created?docClass
- The document class that is being generated.
The method is added to this class.
AccessorGenerator#createGetElementMethod
|
Enhydra 5.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |