cz.cuni.jagrlib.xml
Class JGLScript.ObjectState

java.lang.Object
  extended by cz.cuni.jagrlib.xml.JGLScript.ParseState
      extended by cz.cuni.jagrlib.xml.JGLScript.ObjectState
Enclosing class:
JGLScript

protected class JGLScript.ObjectState
extends JGLScript.ParseState

Defines a new object instance.


Field Summary
 java.lang.Class<?> cl
          Class object, if null, no class-name has been defined yet.
 java.lang.String id
          Object id (unique in the whole script, can be null for anonymous object).
 java.lang.Object instance
          [Result] object instance.
 
Fields inherited from class cz.cuni.jagrlib.xml.JGLScript.ParseState
context, parent
 
Constructor Summary
JGLScript.ObjectState(org.xml.sax.Attributes atts)
           
 
Method Summary
 void endElement(java.lang.String qName)
          My element was finished.
 java.lang.Object invokeMethod(java.lang.String name, java.lang.Object[] args)
          Invokes the given method of the class instance.
 void newInstance(java.lang.Object[] args)
          Checks whether the class instance was already created, if not, creates it using the given constructor.
 void setValue(int type, java.lang.Object value)
          Arbitrary value from one of descendants..
 void startElement(java.lang.String qName, org.xml.sax.Attributes atts)
          A new XML element is starting in my context..
 
Methods inherited from class cz.cuni.jagrlib.xml.JGLScript.ParseState
characters, pop, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public java.lang.String id
Object id (unique in the whole script, can be null for anonymous object).


cl

public java.lang.Class<?> cl
Class object, if null, no class-name has been defined yet.


instance

public java.lang.Object instance
[Result] object instance.

Constructor Detail

JGLScript.ObjectState

public JGLScript.ObjectState(org.xml.sax.Attributes atts)
Method Detail

newInstance

public void newInstance(java.lang.Object[] args)
Checks whether the class instance was already created, if not, creates it using the given constructor.

Overrides:
newInstance in class JGLScript.ParseState

invokeMethod

public java.lang.Object invokeMethod(java.lang.String name,
                                     java.lang.Object[] args)
Invokes the given method of the class instance.

Overrides:
invokeMethod in class JGLScript.ParseState

startElement

public void startElement(java.lang.String qName,
                         org.xml.sax.Attributes atts)
A new XML element is starting in my context..

Overrides:
startElement in class JGLScript.ParseState

endElement

public void endElement(java.lang.String qName)
My element was finished.

Overrides:
endElement in class JGLScript.ParseState

setValue

public void setValue(int type,
                     java.lang.Object value)
Arbitrary value from one of descendants..

Overrides:
setValue in class JGLScript.ParseState