| java.lang.Object org.jicengine.element.ElementCompiler
All known Subclasses: org.jicengine.element.impl.FactoryElementCompiler, org.jicengine.element.impl.ContainerElementCompiler, org.jicengine.element.impl.ConstantOfElementCompiler, org.jicengine.element.impl.SwitchCompiler, org.jicengine.element.impl.MapCompiler, org.jicengine.element.impl.CollectionElementCompiler, org.jicengine.element.impl.CdataConverterElementCompiler, org.jicengine.element.impl.BeanElementCompiler, org.jicengine.element.impl.ArrayElementCompiler,
ElementCompiler | abstract public class ElementCompiler (Code) | |
A class that makes it possible to create Element-objects little by little, as
is needed if the JIC-file is parsed with a SAX-parser.
ElementCompiler parses String-typed attributes and other data to corresponding
objects. After all the data of an XML-element has been processed, the resulting
runtime-Element can be obtained with method createElement() .
Element Life cycle
Copyright (C) 2004 Timo Laitinen
author: .timo |
ATTR_NAME_ACTION | final public static String ATTR_NAME_ACTION(Code) | | |
ATTR_NAME_CLASS | final public static String ATTR_NAME_CLASS(Code) | | |
ATTR_NAME_CONSTRUCTOR_ARGUMENTS | final public static String ATTR_NAME_CONSTRUCTOR_ARGUMENTS(Code) | | |
ATTR_NAME_INSTANCE | final public static String ATTR_NAME_INSTANCE(Code) | | |
ATTR_NAME_OVERRIDABLE_BY | final public static String ATTR_NAME_OVERRIDABLE_BY(Code) | | |
ATTR_NAME_TRACE | final public static String ATTR_NAME_TRACE(Code) | | |
ATTR_NAME_TYPE | final public static String ATTR_NAME_TYPE(Code) | | |
ATTR_NAME_VARIABLES | final public static String ATTR_NAME_VARIABLES(Code) | | |
ElementCompiler | public ElementCompiler()(Code) | | |
elementInitialized | public void elementInitialized() throws ElementException(Code) | |
Called by handler when the start-tag of the element has been processed -
Element has been created and all attributes have been set, but no CDATA nor
child-elements have been processed.
This is a good spot for verifying that
the state of the element is valid - the attributes have been used properly,
attributes not set by user can be set to their default values, etc.
throws: ElementException - Description of the Exception |
handleChildElement | public void handleChildElement(Element child) throws ElementException(Code) | | Used for notifying this element about a child-element
Parameters: child - a child with no action, can have a value or not. throws: ElementException - Description of the Exception |
setAction | public void setAction(String expression) throws ElementException(Code) | |
for setting the action as an expression.
enhancements:
- empty string is mapped into an EmptyOperation
-
expressions of type
setMethod(value) and
add(component) are automatically madded to expressions
parent.setMethod(value) and
parent.add(component) .
|
setCData | public void setCData(String cdata, boolean syntaxBasedCdataConversionsSupported) throws ElementException(Code) | | if this element has a constructor, the cdata is added to the element-context
with the name 'cdata'. (cdata might be ignored if the constructor doesn't
use cdata) if there is no constructor, cdata becomes the value of this
element.
Parameters: cdata - Description of the Parameter Parameters: syntaxBasedCdataConversionsSupported - throws: ElementException - Description of the Exception |
setConstructorArguments | public void setConstructorArguments(String argumentExpression)(Code) | | |
setOverridableBy | public void setOverridableBy(String overridingId)(Code) | | |
|
|