org.onemind.jxp
Class JxpPage

java.lang.Object
  extended by org.onemind.jxp.JxpPage
Direct Known Subclasses:
CachedJxpPage

public abstract class JxpPage
extends java.lang.Object

Represent an JXPPage. It has a name and hold reference to the AST structure

Author:
TiongHiang Lee (thlee@onemindsoft.org)

Field Summary
private  AstJxpDocument _doc
          the document *
private  java.lang.String _encoding
          the encoding
private  java.lang.String _name
          the name *
private  JxpPageParseException _pageParseException
          the error message *
private  JxpPageSource _source
          the source *
 
Constructor Summary
JxpPage(JxpPageSource source, java.lang.String name, java.lang.String encoding)
          Constructor
 
Method Summary
abstract  java.lang.Object assignStaticVariable(java.lang.String name, java.lang.Object value)
           
abstract  java.lang.Object declareStaticVariable(java.lang.String s, java.lang.Object value)
           
 AstJxpDocument getDocument()
          Return the doc
 java.lang.String getEncoding()
          Return the encoding
 AstJxpDocument getJxpDocument()
          Get the JxpDocument tree structure
 java.lang.String getName()
          Get the name
 JxpPageParseException getParseException()
          Return the pageParseException
 JxpPageSource getSource()
          Get the source
abstract  java.lang.Object getStaticVariable(java.lang.String s)
           
 boolean hasParseError()
          Return the hasParseError
abstract  boolean hasStaticVariable(java.lang.String s)
           
 void setDocument(AstJxpDocument doc)
          Set the doc
 void setEncoding(java.lang.String encoding)
          Set the encoding
 void setParseException(JxpPageParseException pageParseException)
          Set the pageParseException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_source

private JxpPageSource _source
the source *


_name

private java.lang.String _name
the name *


_doc

private AstJxpDocument _doc
the document *


_pageParseException

private JxpPageParseException _pageParseException
the error message *


_encoding

private java.lang.String _encoding
the encoding

Constructor Detail

JxpPage

public JxpPage(JxpPageSource source,
               java.lang.String name,
               java.lang.String encoding)
Constructor

Parameters:
source - the source
name - the name
Method Detail

getName

public final java.lang.String getName()
Get the name

Returns:
the name

getJxpDocument

public final AstJxpDocument getJxpDocument()
                                    throws JxpPageSourceException
Get the JxpDocument tree structure

Returns:
the document tree structure
Throws:
JxpPageSourceException - if there's problem creating the document tree

getSource

public final JxpPageSource getSource()
Get the source

Returns:
the source

getDocument

public final AstJxpDocument getDocument()
Return the doc

Returns:
the doc.

setDocument

public final void setDocument(AstJxpDocument doc)
Set the doc

Parameters:
doc - The doc to set.

declareStaticVariable

public abstract java.lang.Object declareStaticVariable(java.lang.String s,
                                                       java.lang.Object value)
Parameters:
s -
Returns:

hasStaticVariable

public abstract boolean hasStaticVariable(java.lang.String s)
Parameters:
s -
Returns:

getStaticVariable

public abstract java.lang.Object getStaticVariable(java.lang.String s)
Parameters:
s -
Returns:

assignStaticVariable

public abstract java.lang.Object assignStaticVariable(java.lang.String name,
                                                      java.lang.Object value)
Parameters:
name -
value -

hasParseError

public final boolean hasParseError()
Return the hasParseError

Returns:
the hasParseError.

setParseException

public final void setParseException(JxpPageParseException pageParseException)
Set the pageParseException

Parameters:
pageParseException - The pageParseException to set.

getParseException

public final JxpPageParseException getParseException()
Return the pageParseException

Returns:
the pageParseException.

getEncoding

public final java.lang.String getEncoding()
Return the encoding

Returns:
the encoding.

setEncoding

public final void setEncoding(java.lang.String encoding)
Set the encoding

Parameters:
encoding - The encoding to set.