freemarker.debug
Interface DebugModel
- All Superinterfaces:
- java.rmi.Remote
- All Known Subinterfaces:
- DebuggedEnvironment
- public interface DebugModel
- extends java.rmi.Remote
Represents the debugger-side mirror of a TemplateModel object, a Template
object, or a Configuration object. The Environment objects are also represented
by instances of this model, although not directly but through a separate
subinterface DebuggedEnvironment
. The interface is a union of
almost all of FreeMarker template models with identical method signatures.
For purposes of optimizing network traffic there are bulk retrieval methods
for sequences and hashes, as well as a getModelTypes()
method that
returns a bit mask of various TYPE_xxx constants flagging which
template models are implemented by the mirrored object.
- Version:
- $Id: DebugModel.java,v 1.2 2003/06/08 00:58:16 herbyderby Exp $
- Author:
- Attila Szegedi
TYPE_SCALAR
public static final int TYPE_SCALAR
- See Also:
- Constant Field Values
TYPE_NUMBER
public static final int TYPE_NUMBER
- See Also:
- Constant Field Values
TYPE_DATE
public static final int TYPE_DATE
- See Also:
- Constant Field Values
TYPE_BOOLEAN
public static final int TYPE_BOOLEAN
- See Also:
- Constant Field Values
TYPE_SEQUENCE
public static final int TYPE_SEQUENCE
- See Also:
- Constant Field Values
TYPE_COLLECTION
public static final int TYPE_COLLECTION
- See Also:
- Constant Field Values
TYPE_HASH
public static final int TYPE_HASH
- See Also:
- Constant Field Values
TYPE_HASH_EX
public static final int TYPE_HASH_EX
- See Also:
- Constant Field Values
TYPE_METHOD
public static final int TYPE_METHOD
- See Also:
- Constant Field Values
TYPE_METHOD_EX
public static final int TYPE_METHOD_EX
- See Also:
- Constant Field Values
TYPE_TRANSFORM
public static final int TYPE_TRANSFORM
- See Also:
- Constant Field Values
TYPE_ENVIRONMENT
public static final int TYPE_ENVIRONMENT
- See Also:
- Constant Field Values
TYPE_TEMPLATE
public static final int TYPE_TEMPLATE
- See Also:
- Constant Field Values
TYPE_CONFIGURATION
public static final int TYPE_CONFIGURATION
- See Also:
- Constant Field Values
getAsString
public java.lang.String getAsString()
throws TemplateModelException,
java.rmi.RemoteException
- Throws:
TemplateModelException
java.rmi.RemoteException
getAsNumber
public java.lang.Number getAsNumber()
throws TemplateModelException,
java.rmi.RemoteException
- Throws:
TemplateModelException
java.rmi.RemoteException
getAsBoolean
public boolean getAsBoolean()
throws TemplateModelException,
java.rmi.RemoteException
- Throws:
TemplateModelException
java.rmi.RemoteException
getAsDate
public java.util.Date getAsDate()
throws TemplateModelException,
java.rmi.RemoteException
- Throws:
TemplateModelException
java.rmi.RemoteException
getDateType
public int getDateType()
throws TemplateModelException,
java.rmi.RemoteException
- Throws:
TemplateModelException
java.rmi.RemoteException
size
public int size()
throws TemplateModelException,
java.rmi.RemoteException
- Throws:
TemplateModelException
java.rmi.RemoteException
get
public DebugModel get(int index)
throws TemplateModelException,
java.rmi.RemoteException
- Throws:
TemplateModelException
java.rmi.RemoteException
get
public DebugModel[] get(int fromIndex,
int toIndex)
throws TemplateModelException,
java.rmi.RemoteException
- Throws:
TemplateModelException
java.rmi.RemoteException
get
public DebugModel get(java.lang.String key)
throws TemplateModelException,
java.rmi.RemoteException
- Throws:
TemplateModelException
java.rmi.RemoteException
get
public DebugModel[] get(java.lang.String[] keys)
throws TemplateModelException,
java.rmi.RemoteException
- Throws:
TemplateModelException
java.rmi.RemoteException
getCollection
public DebugModel[] getCollection()
throws TemplateModelException,
java.rmi.RemoteException
- Throws:
TemplateModelException
java.rmi.RemoteException
keys
public java.lang.String[] keys()
throws TemplateModelException,
java.rmi.RemoteException
- Throws:
TemplateModelException
java.rmi.RemoteException
getModelTypes
public int getModelTypes()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException