| jacareto.struct.StructureElement jacareto.struct.RootElement
All known Subclasses: jacareto.struct.CounterRootElement, jacareto.struct.BrowserRootElement, jacareto.struct.JacShowRootElement,
RootElement | public RootElement(Environment env, StructureElement[] children)(Code) | | Creates a new default root structure element.
Parameters: env - the environment Parameters: children - the child structure elements |
RootElement | public RootElement(Environment env)(Code) | | Creates a new default root structure element with no childs.
Parameters: env - the environment |
addParseMethod | public static void addParseMethod(Method method, int priority)(Code) | | Register a parse method of a structure element with a specified priority. A greater value of
priority symbolizes a higher priority.
Parameters: method - the method to add Parameters: priority - the priority |
addParseMethod | public static void addParseMethod(Method method)(Code) | | Register a parse method of a structure element with the lowest priority.
Parameters: method - the parse method to add |
clone | public Object clone()(Code) | | Clones the element.
DOCUMENT ME! |
getElementDescription | public String getElementDescription()(Code) | | Returns a description of the element.
the description |
getElementName | public String getElementName()(Code) | | Returns the name of the element.
the name |
getRecord | public Record getRecord()(Code) | | Returns the record the structure of this root element belongs to.
the record, or null if the record has not been set before |
parse | public static StructureElement parse(Environment env, RecordTokenizer recordTokenizer)(Code) | | Parses a record which is tokenized by the given record tokenizer. Which root element type is
used is defined by the customization key "RootElement.Type".
Parameters: env - DOCUMENT ME! Parameters: recordTokenizer - the record tokenizer the structure element, or null if this class cannot parse the record atthe current position |
parse | public static StructureElement parse(Environment env, RecordTokenizer recordTokenizer, String customizationKey)(Code) | | Parses a record which is tokenized by the given record tokenizer.
Parameters: env - DOCUMENT ME! Parameters: recordTokenizer - the record tokenizer Parameters: customizationKey - DOCUMENT ME! the structure element for the given customization key, or null if thisclass cannot parse the record at the current position |
parse | public static StructureElement parse(Environment env, StructureElement root)(Code) | | Parses a record which is tokenized by the given structure. Which root element type is used
is defined by the customization key "RootElement.Type".
Parameters: env - the envoriment Parameters: root - the root structure element taht schoul be parsed the structure element, or null if this class cannot parse the record atthe current position |
parse | public static StructureElement parse(Environment env, StructureElement root, String customizationKey)(Code) | | Parses a record which is tokenized by the given structure. Used when static structure
elements contained in the tree with the root element root should be preserved.
Parameters: env - the envoriment Parameters: root - the root structure element that should be parsed Parameters: customizationKey - DOCUMENT ME! the structure element for the given customization key, or null if thisclass cannot parse the record at the current position |
recordHasChanged | public void recordHasChanged(RecordChangeEvent event)(Code) | | Invoked when the record has changed.
Parameters: event - the event which contains the information of the record change. |
setClassLoader | public static void setClassLoader(ClassLoader newClassLoader)(Code) | | Sets the class loader which loads the structure element classes.
Parameters: newClassLoader - DOCUMENT ME! |
setRecord | public void setRecord(Record record)(Code) | | Sets the record the structure of this root element belongs to.
Parameters: record - DOCUMENT ME! |
toShortString | public String toShortString()(Code) | | Returns a String which describes the content of the element shortly.
a string with a short description of the element |
|
|