org.argouml.uml.generator
Class Parser

java.lang.Object
  extended byorg.argouml.uml.generator.Parser
Direct Known Subclasses:
ParserDisplay

public abstract class Parser
extends Object

Parent of ParserDisplay. TODO: Explain the purpose of this class! TODO: Why do these functions return the object they receive?


Constructor Summary
Parser()
           
 
Method Summary
abstract  Object parseActionState(String s, Object actionState)
          Parse a given string s with the information given from the action state actionState and update this actionState.
abstract  void parseAttribute(String s, Object attr)
           
abstract  Object parseExtensionPoint(String s)
           
abstract  void parseOperation(String s, Object op)
           
abstract  Object parseTransition(Object trans, String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser()
Method Detail

parseExtensionPoint

public abstract Object parseExtensionPoint(String s)
Parameters:
s - the input string to be parsed
Returns:
the extensionpoint

parseOperation

public abstract void parseOperation(String s,
                                    Object op)
                             throws ParseException
Parameters:
s - the input string to be parsed
op - the operation
Throws:
ParseException - when the input is invalid and should be rejected

parseAttribute

public abstract void parseAttribute(String s,
                                    Object attr)
                             throws ParseException
Parameters:
s - the input string to be parsed
attr - the attribute
Throws:
ParseException - when the input is invalid and should be rejected

parseTransition

public abstract Object parseTransition(Object trans,
                                       String s)
                                throws ParseException
Parameters:
trans - the transition
s - the input string to be parsed
Returns:
the transition
Throws:
ParseException - when there is a syntax error in the input text so that it should be rejected

parseActionState

public abstract Object parseActionState(String s,
                                        Object actionState)
Parse a given string s with the information given from the action state actionState and update this actionState.

Parameters:
actionState - the input actionstate
s - the input string
Returns:
the actionstate


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook