|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.oddjob.arooa.design.DesignParser
public class DesignParser
Parses a configuration to create a DesignInstance.
The Design is created using a DesignFactory. If one
is not provided a default factory is used which will first check
the ElementMappings of the sessions ArooaDescriptor
for a one. If none exists it will provide one that will dynamically
create a design from the properties of the class as derived from
the element and the mappings.
| Constructor Summary | |
|---|---|
DesignParser()
Default Constructor. |
|
DesignParser(ArooaSession existingSession)
Create a DesignParser with the given session. |
|
DesignParser(ArooaSession existingSession,
DesignFactory factory)
Create a DesignParser with the given session and factory. |
|
DesignParser(DesignFactory factory)
Create a DesignParser for the standard session and given factory. |
|
| Method Summary | |
|---|---|
void |
addDesignListener(DesignListener listener)
Add a listener. |
ArooaType |
getArooaType()
Is this the design of a Value or a Component? |
DesignInstance |
getDesign()
Getter for the current DesignInstance. |
ArooaElement |
getExpectedDocumentElement()
Getter for the expected document element. |
ConfigurationHandle |
parse(ArooaConfiguration configuration)
Parse an ArooaConfiguration. |
void |
removeDesignListener(DesignListener listener)
Remove a listener. |
void |
setArooaType(ArooaType type)
Set if this is the design of a Value or a Component. |
void |
setExpectedDoucmentElement(ArooaElement element)
Setter for expected document element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DesignParser()
StandardArooaSession, and a default factory.
public DesignParser(ArooaSession existingSession)
existingSession - A session. If null the standard
will be used.public DesignParser(DesignFactory factory)
factory - The factory.
public DesignParser(ArooaSession existingSession,
DesignFactory factory)
existingSession - A Session. If null the standard will be used.factory - A factory. If null a default will be used.| Method Detail |
|---|
public void addDesignListener(DesignListener listener)
DesignNotifier
addDesignListener in interface DesignNotifierlistener - The listener.public void removeDesignListener(DesignListener listener)
DesignNotifier
removeDesignListener in interface DesignNotifierlistener - The listener.
public ConfigurationHandle parse(ArooaConfiguration configuration)
throws ArooaParseException
ArooaParserArooaConfiguration.
parse in interface ArooaParserconfiguration - The configuration.
ConfigurationHandle.
ArooaParseException - If parsing fails.public DesignInstance getDesign()
DesignInstance.
public ArooaType getArooaType()
public void setArooaType(ArooaType type)
component - True if this is a Component Design.public ArooaElement getExpectedDocumentElement()
public void setExpectedDoucmentElement(ArooaElement element)
element - The expected document element. Can be
null if element can be anything.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||