railo.runtime.type.scope
Class ScopeSupport
java.lang.Object
railo.runtime.type.util.StructSupport
railo.runtime.type.StructImpl
railo.runtime.type.scope.ScopeSupport
- All Implemented Interfaces:
- Serializable, Cloneable, Map, Dumpable, Castable, Collection, ForEachIteratorable, Iteratorable, Objects, Scope, Sizeable, Struct
- Direct Known Subclasses:
- ApplicationImpl, ArgumentImpl, Closure, ClusterWrap, CookieImpl, FormImpl, JSession, LocalImpl, ServerImpl, URLImpl, VariablesImpl
public abstract class ScopeSupport
- extends StructImpl
- implements Scope, Sizeable
Simple standart implementation of a Scope, for standart use.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Fields inherited from interface railo.runtime.type.scope.Scope |
SCOPE_APPLICATION, SCOPE_ARGUMENTS, SCOPE_CALLER, SCOPE_CGI, SCOPE_CLIENT, SCOPE_CLUSTER, SCOPE_COOKIE, SCOPE_COUNT, SCOPE_FORM, SCOPE_LOCAL, SCOPE_REQUEST, SCOPE_SERVER, SCOPE_SESSION, SCOPE_UNDEFINED, SCOPE_URL, SCOPE_VAR, SCOPE_VARIABLES |
Constructor Summary |
ScopeSupport(boolean sync,
String name,
int type)
constructor for the Simple class |
ScopeSupport(String name,
int type,
int mapType)
constructor for ScopeSupport |
Methods inherited from class railo.runtime.type.StructImpl |
clear, containsKey, containsValue, copy, duplicate, entryIterator, equals, g, g, get, get, hashCode, keyIterator, keys, keysAsStringIterator, remove, removeEL, set, setEL, size, valueIterator, values |
Methods inherited from class railo.runtime.type.util.StructSupport |
call, callWithNamedValues, castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, clone, compareTo, compareTo, compareTo, compareTo, containsKey, containsKey, entrySet, get, get, get, get, get, getIterator, invalidKey, isEmpty, keySet, put, putAll, remove, set, set, setEL, setEL, toString |
Methods inherited from interface railo.runtime.type.Collection |
clear, clone, containsKey, containsKey, duplicate, get, get, get, get, keys, remove, removeEL, set, set, setEL, setEL, size |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from interface railo.runtime.op.Castable |
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, compareTo, compareTo, compareTo, compareTo |
ScopeSupport
public ScopeSupport(boolean sync,
String name,
int type)
- constructor for the Simple class
- Parameters:
name
- name of the scopetype
- scope type (SCOPE_APPLICATION,SCOPE_COOKIE use)
ScopeSupport
public ScopeSupport(String name,
int type,
int mapType)
- constructor for ScopeSupport
- Parameters:
name
- name of the scopetype
- scope type (SCOPE_APPLICATION,SCOPE_COOKIE use)doubleLinked
- mean that the struct has predictable iteration order this make the input order fix
toDumpData
public DumpData toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
- Description copied from interface:
Dumpable
- method to print out information to a object as HTML
- Specified by:
toDumpData
in interface Dumpable
- Overrides:
toDumpData
in class StructSupport
- Returns:
- HTML print out
toDumpData
public static DumpData toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp,
Struct sct,
String dspName)
isInitalized
public boolean isInitalized()
- Description copied from interface:
Scope
- return if the scope is Initialiesd
- Specified by:
isInitalized
in interface Scope
- Returns:
- scope is init
initialize
public void initialize(PageContext pc)
- Description copied from interface:
Scope
- Initalize Scope
- Specified by:
initialize
in interface Scope
- Parameters:
pc
- Page Context
release
public void release()
- Description copied from interface:
Scope
- release scope for reuse
- Specified by:
release
in interface Scope
release
public void release(PageContext pc)
- Description copied from interface:
Scope
- release scope for reuse
- Specified by:
release
in interface Scope
_getId
public int _getId()
- Returns:
- Returns the id.
getType
public int getType()
- Specified by:
getType
in interface Scope
- Returns:
- return the scope type (SCOPE_SERVER, SCOPE_SESSION usw.)
getTypeAsString
public String getTypeAsString()
- Specified by:
getTypeAsString
in interface Scope
- Returns:
- return the scope type as a String (server,session usw.)
sizeOf
public long sizeOf()
- Description copied from interface:
Sizeable
- return the size of the object
- Specified by:
sizeOf
in interface Sizeable
- Overrides:
sizeOf
in class StructSupport
- Returns:
- size of the object
Copyright © 2012 Railo