railo.runtime.type
Class ReadOnlyStruct
java.lang.Object
railo.runtime.type.util.StructSupport
railo.runtime.type.StructImpl
railo.runtime.type.ReadOnlyStruct
- All Implemented Interfaces:
- Serializable, Cloneable, Map, Dumpable, Castable, Collection, Iteratorable, Sizeable, Struct
- Direct Known Subclasses:
- CGIImpl
public class ReadOnlyStruct
- extends StructImpl
a read only Struct if flag is set to readonly
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Methods inherited from class railo.runtime.type.StructImpl |
containsKey, containsValue, copy, get, get, keyIterator, keys, keysAsString, size, valueIterator, values |
Methods inherited from class railo.runtime.type.util.StructSupport |
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, clone, compareTo, compareTo, compareTo, compareTo, containsKey, containsKey, entrySet, equals, get, get, get, invalidKey, isEmpty, iterator, keySet, put, putAll, remove, set, setEL, sizeOf, toDumpData, toString |
Methods inherited from interface java.util.Map |
hashCode |
ReadOnlyStruct
public ReadOnlyStruct()
setReadOnly
public void setReadOnly(boolean isReadOnly)
- sets if scope is readonly or not
- Parameters:
isReadOnly
-
remove
public Object remove(String key)
throws PageException
- Overrides:
remove
in class StructImpl
- Throws:
PageException
- See Also:
StructImpl.remove(java.lang.String)
remove
public Object remove(Collection.Key key)
throws PageException
- Description copied from interface:
Collection
- removes value from collection and return it when it exists, otherwise throws a exception
- Specified by:
remove
in interface Collection
- Overrides:
remove
in class StructImpl
- Parameters:
key
- key of the collection
- Returns:
- removed Object
- Throws:
PageException
- See Also:
StructImpl.remove(railo.runtime.type.Collection.Key)
removeEL
public Object removeEL(Collection.Key key)
- Description copied from interface:
Collection
- removes value from collection and return it when it exists, otherwise returns null
- Specified by:
removeEL
in interface Collection
- Overrides:
removeEL
in class StructImpl
- Parameters:
key
- key of the collection
- Returns:
- removed Object
- See Also:
railo.runtime.type.StructImpl#removeEL(java.lang.String)
removeAll
public void removeAll()
- See Also:
Collection.clear()
set
public Object set(Collection.Key key,
Object value)
throws PageException
- Description copied from interface:
Collection
- sets a value to the collection
- Specified by:
set
in interface Collection
- Overrides:
set
in class StructImpl
- Parameters:
key
- key of the new valuevalue
- value to set
- Returns:
- value setted
- Throws:
PageException
- See Also:
StructImpl.set(railo.runtime.type.Collection.Key, java.lang.Object)
setEL
public Object setEL(Collection.Key key,
Object value)
- Description copied from interface:
Collection
- sets a value to the collection, if key doesn't exist, dont throw a exception, returns null
- Specified by:
setEL
in interface Collection
- Overrides:
setEL
in class StructImpl
- Parameters:
key
- key of the value to getvalue
- value to set
- Returns:
- value on key position or null
- See Also:
StructImpl.setEL(railo.runtime.type.Collection.Key, java.lang.Object)
duplicate
public Collection duplicate(boolean deepCopy)
- Specified by:
duplicate
in interface Collection
- Overrides:
duplicate
in class StructImpl
- See Also:
StructImpl.duplicate(boolean)
clear
public void clear()
- Description copied from interface:
Collection
- clears the collection
- Specified by:
clear
in interface Map
- Specified by:
clear
in interface Collection
- Overrides:
clear
in class StructImpl
- See Also:
Collection.clear()
Copyright © 2012 Railo