|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for class to generate access methods in a DOM-specific manner.
Method Summary | |
void |
createAccessMethodInit(ElementInfo elementInfo,
String elementVarName,
JavaCode body)
Create code to setup an access method for an element when building the DOM. |
JavaMethod |
createAccessorMethod(ElementInfo elementInfo,
ElementInfo.AccessorInfo accessor,
boolean createDelegation,
JavaClass docClass)
Create a getElementXXX() or getTagXXX() method for an element. |
void |
createNullElementAccess(ElementInfo elementInfo,
JavaCode body)
Create code cached information so that element access methods return null. |
void |
createResetElementAccess(ElementInfo elementInfo,
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 setTextXXX() method for an element. |
Method Detail |
public void createAccessMethodInit(ElementInfo elementInfo, String elementVarName, JavaCode body)
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.public void createNullElementAccess(ElementInfo elementInfo, JavaCode body)
elementInfo
- Information about the element.body
- Append creation code to this code in the document builder
that is being generated.public void createResetElementAccess(ElementInfo elementInfo, String nodeVarName, JavaCode body)
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.public JavaMethod createAccessorMethod(ElementInfo elementInfo, ElementInfo.AccessorInfo accessor, boolean createDelegation, JavaClass docClass)
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.public JavaMethod createSetTextMethod(ElementInfo elementInfo, boolean createDelegation, JavaClass docClass)
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |