public class SuperComponent extends MemberSupport implements ComponentPro, Member, Sizeable
Collection.Key
ACCESS_COUNT, ACCESS_PACKAGE, ACCESS_PRIVATE, ACCESS_PUBLIC, ACCESS_REMOTE
TYPE_LINKED, TYPE_REGULAR, TYPE_SOFT, TYPE_SYNC, TYPE_WEAKED
Modifier and Type | Method and Description |
---|---|
Object |
call(PageContext pc,
Collection.Key name,
Object[] args)
calls a method of the object
|
Object |
call(PageContext pc,
int access,
Collection.Key name,
Object[] args) |
Object |
call(PageContext pc,
String name,
Object[] args)
call a method of the component with no named arguments
|
Object |
callWithNamedValues(PageContext pc,
Collection.Key methodName,
Struct args)
call a method of the Object with named arguments
|
Object |
callWithNamedValues(PageContext pc,
int access,
Collection.Key name,
Struct args) |
Object |
callWithNamedValues(PageContext pc,
String name,
Struct args)
call a method of the component with named arguments
|
Boolean |
castToBoolean(Boolean defaultValue)
cast the castable value to a boolean value
|
boolean |
castToBooleanValue()
cast the castable value to a boolean value
|
DateTime |
castToDateTime()
cast the castable value to a date time object
|
DateTime |
castToDateTime(DateTime defaultValue)
cast the castable value to a date time object
|
double |
castToDoubleValue()
cast the castable value to a double value
|
double |
castToDoubleValue(double defaultValue)
cast the castable value to a double value
|
String |
castToString()
cast the castable value to a string, other than the Method toString, this Method can throw a Exception
|
String |
castToString(String defaultValue)
cast the castable value to a string, return the default value, when the method is not castable
|
void |
clear()
clears the collection
|
Object |
clone() |
int |
compareTo(boolean b) |
int |
compareTo(DateTime dt) |
int |
compareTo(double d) |
int |
compareTo(String str) |
boolean |
contains(int access,
Collection.Key name) |
boolean |
contains(PageContext pc,
Collection.Key key) |
boolean |
containsKey(Collection.Key key)
contains this key
|
boolean |
containsKey(Object key) |
boolean |
containsKey(String name)
contains this key
|
boolean |
containsValue(Object value) |
Collection |
duplicate(boolean deepCopy) |
Iterator<Map.Entry<Collection.Key,Object>> |
entryIterator() |
Iterator<Map.Entry<Collection.Key,Object>> |
entryIterator(int access) |
Set |
entrySet() |
boolean |
equalTo(String type) |
Object |
get(Collection.Key key)
return a value from the collection
|
Object |
get(Collection.Key key,
Object defaultValue)
return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null
|
Object |
get(int access,
Collection.Key key) |
Object |
get(int access,
Collection.Key key,
Object defaultValue) |
Object |
get(Object key) |
Object |
get(PageContext pc,
Collection.Key key)
return property or getter of the ContextCollection
|
Object |
get(PageContext pc,
Collection.Key key,
Object defaultValue)
return property
|
Object |
get(String name)
return a value from the collection
|
Object |
get(String name,
Object defaultValue)
return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null
|
String |
getAbsName() |
String |
getBaseAbsName() |
Component |
getBaseComponent() |
String |
getCallName() |
ComponentScope |
getComponentScope() |
String |
getDisplayName() |
String |
getExtends() |
String |
getHint() |
Iterator<String> |
getIterator() |
Class |
getJavaAccessClass(RefBoolean isNew)
returns java class to the component interface (all UDFs),
this class is generated dynamic when used
|
Member |
getMember(int access,
Collection.Key key,
boolean dataMember,
boolean superAccess) |
Struct |
getMetaData(PageContext pc)
returns Meta Data to the Component
|
Object |
getMetaStructItem(Collection.Key name) |
String |
getName() |
boolean |
getOutput() |
PageSource |
getPageSource() |
Property[] |
getProperties(boolean onlyPeristent)
return all properties from component
|
Property[] |
getProperties(boolean onlyPeristent,
boolean includeBaseProperties,
boolean overrideProperties,
boolean inheritedMappedSuperClassOnly) |
Object |
getValue()
return the value itself
|
String |
getWSDLFile() |
boolean |
instanceOf(String type)
check if Component is instance of this type
|
boolean |
isAccessors() |
boolean |
isBasePeristent() |
boolean |
isEmpty() |
boolean |
isEntity() |
boolean |
isInitalized() |
boolean |
isPersistent() |
boolean |
isValidAccess(int access)
check if value is a valid access modifier constant
|
Iterator<Collection.Key> |
keyIterator() |
Iterator<Collection.Key> |
keyIterator(int access) |
Collection.Key[] |
keys() |
Collection.Key[] |
keys(int access) |
Iterator<String> |
keysAsStringIterator() |
Iterator<String> |
keysAsStringIterator(int access) |
Set |
keySet() |
Set<Collection.Key> |
keySet(int access) |
Object |
put(Object key,
Object value) |
void |
putAll(Map map) |
void |
registerUDF(Collection.Key key,
UDF udf) |
void |
registerUDF(Collection.Key key,
UDFProperties props) |
void |
registerUDF(String key,
UDF udf) |
void |
registerUDF(String key,
UDFProperties props) |
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception
|
Object |
remove(Object key) |
Object |
removeEL(Collection.Key key)
removes value from collection and return it when it exists, otherwise returns null
|
Object |
set(Collection.Key key,
Object value)
sets a value to the collection
|
Object |
set(PageContext pc,
Collection.Key key,
Object value)
sets a property (Data Member) value of the object
|
Object |
set(String name,
Object value)
sets a value to the collection
|
Object |
setEL(Collection.Key key,
Object value)
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null
|
Object |
setEL(PageContext pc,
Collection.Key name,
Object value)
sets a property (Data Member) value of the object
|
Object |
setEL(String name,
Object value)
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null
|
void |
setEntity(boolean entity) |
void |
setProperty(Property property) |
int |
size() |
int |
size(int access) |
long |
sizeOf()
return the size of the object
|
static Collection |
superInstance(ComponentImpl comp) |
static Member |
superMember(ComponentImpl comp) |
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp,
int access) |
Iterator<Object> |
valueIterator() |
Iterator<Object> |
valueIterator(int access) |
Collection |
values() |
getAccess, setAccess, setAccess
public static Member superMember(ComponentImpl comp)
public static Collection superInstance(ComponentImpl comp)
public Object call(PageContext pc, String name, Object[] args) throws PageException
Component
call
in interface Component
pc
- PageContextname
- name of the methodargs
- Arguments for the methodPageException
public Object call(PageContext pc, Collection.Key name, Object[] args) throws PageException
Objects
call
in interface Objects
name
- name of the method to callargs
- arguments to call method withPageException
public Object callWithNamedValues(PageContext pc, String name, Struct args) throws PageException
Component
callWithNamedValues
in interface Component
pc
- PageContextname
- name of the methodargs
- Named Arguments for the methodPageException
public Object callWithNamedValues(PageContext pc, Collection.Key methodName, Struct args) throws PageException
Objects
callWithNamedValues
in interface Objects
pc
- PageContextmethodName
- name of the methodargs
- Named Arguments for the methodPageException
public boolean castToBooleanValue() throws PageException
Castable
castToBooleanValue
in interface Castable
PageException
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
public DateTime castToDateTime() throws PageException
Castable
castToDateTime
in interface Castable
PageException
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
defaultValue
- returned when it is not possible to cast to a dateTime objectpublic double castToDoubleValue() throws PageException
Castable
castToDoubleValue
in interface Castable
PageException
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
public String castToString() throws PageException
Castable
castToString
in interface Castable
PageException
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
public void clear()
Collection
clear
in interface Map
clear
in interface Collection
public Object clone()
clone
in interface Collection
clone
in class Object
public int compareTo(boolean b) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(double d) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(String str) throws PageException
compareTo
in interface Castable
PageException
public boolean containsKey(String name)
Collection
containsKey
in interface Collection
public boolean containsKey(Collection.Key key)
Collection
containsKey
in interface Collection
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
duplicate
in interface Duplicable
public Object get(PageContext pc, Collection.Key key) throws PageException
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the PropertyPageException
public Object get(PageContext pc, Collection.Key key, Object defaultValue)
Objects
public Object get(String name) throws PageException
Collection
get
in interface Collection
name
- key of the value to getPageException
public Object get(String name, Object defaultValue)
Collection
get
in interface Collection
name
- key of the value to getpublic Object get(Collection.Key key) throws PageException
Collection
get
in interface Collection
key
- key of the value to get must be lower casePageException
public Object get(Collection.Key key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to getpublic String getAbsName()
getAbsName
in interface Component
public String getBaseAbsName()
getBaseAbsName
in interface Component
public boolean isBasePeristent()
isBasePeristent
in interface Component
public String getCallName()
getCallName
in interface Component
public String getDisplayName()
getDisplayName
in interface Component
public String getExtends()
getExtends
in interface Component
public Class getJavaAccessClass(RefBoolean isNew) throws PageException
Component
getJavaAccessClass
in interface Component
PageException
- FUTURE deprecatedpublic Struct getMetaData(PageContext pc) throws PageException
Component
getMetaData
in interface Component
PageException
public boolean getOutput()
public boolean instanceOf(String type)
Component
instanceOf
in interface Component
type
- type to compare as Stringpublic boolean isInitalized()
public boolean isValidAccess(int access)
Component
isValidAccess
in interface Component
public Iterator<Collection.Key> keyIterator()
keyIterator
in interface Iteratorable
public Iterator<String> keysAsStringIterator()
keysAsStringIterator
in interface Iteratorable
public Iterator<Map.Entry<Collection.Key,Object>> entryIterator()
entryIterator
in interface Iteratorable
public Collection.Key[] keys()
keys
in interface Collection
public Object remove(Collection.Key key) throws PageException
Collection
remove
in interface Collection
key
- key of the collectionPageException
public Object removeEL(Collection.Key key)
Collection
removeEL
in interface Collection
key
- key of the collectionpublic Object set(PageContext pc, Collection.Key key, Object value) throws PageException
Objects
set
in interface Objects
key
- property name to setvalue
- value to insertPageException
public Object set(String name, Object value) throws PageException
Collection
set
in interface Collection
name
- key of the new valuevalue
- value to setPageException
public Object set(Collection.Key key, Object value) throws PageException
Collection
set
in interface Collection
key
- key of the new valuevalue
- value to setPageException
public Object setEL(PageContext pc, Collection.Key name, Object value)
Objects
public Object setEL(String name, Object value)
Collection
setEL
in interface Collection
name
- key of the value to getvalue
- value to setpublic Object setEL(Collection.Key key, Object value)
Collection
setEL
in interface Collection
key
- key of the value to getvalue
- value to setpublic int size()
size
in interface Map
size
in interface Collection
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
public PageSource getPageSource()
getPageSource
in interface Component
public boolean containsKey(Object key)
containsKey
in interface Map
public Collection values()
public boolean containsValue(Object value)
containsValue
in interface Map
public Iterator<Object> valueIterator()
valueIterator
in interface Iteratorable
public Property[] getProperties(boolean onlyPeristent)
Component
getProperties
in interface Component
onlyPeristent
- if true return only columns where attribute persistent is not set to falsepublic Property[] getProperties(boolean onlyPeristent, boolean includeBaseProperties, boolean overrideProperties, boolean inheritedMappedSuperClassOnly)
getProperties
in interface ComponentPro
public ComponentScope getComponentScope()
getComponentScope
in interface Component
public boolean contains(PageContext pc, Collection.Key key)
public void setProperty(Property property) throws PageException
setProperty
in interface Component
PageException
public long sizeOf()
Sizeable
public String getWSDLFile()
getWSDLFile
in interface Component
public void registerUDF(String key, UDF udf)
registerUDF
in interface Component
public void registerUDF(Collection.Key key, UDF udf)
registerUDF
in interface Component
public void registerUDF(String key, UDFProperties props)
registerUDF
in interface Component
public void registerUDF(Collection.Key key, UDFProperties props)
registerUDF
in interface Component
public Iterator<String> getIterator()
getIterator
in interface ForEachIteratorable
public boolean isPersistent()
isPersistent
in interface ComponentPro
public boolean isAccessors()
isAccessors
in interface ComponentPro
public void setEntity(boolean entity)
setEntity
in interface ComponentPro
public boolean isEntity()
isEntity
in interface ComponentPro
public Component getBaseComponent()
getBaseComponent
in interface ComponentPro
public Set<Collection.Key> keySet(int access)
keySet
in interface ComponentPro
public Object getMetaStructItem(Collection.Key name)
getMetaStructItem
in interface ComponentPro
public Object call(PageContext pc, int access, Collection.Key name, Object[] args) throws PageException
call
in interface ComponentPro
PageException
public Object callWithNamedValues(PageContext pc, int access, Collection.Key name, Struct args) throws PageException
callWithNamedValues
in interface ComponentPro
PageException
public int size(int access)
size
in interface ComponentPro
public Collection.Key[] keys(int access)
keys
in interface ComponentPro
public Iterator<Collection.Key> keyIterator(int access)
keyIterator
in interface ComponentPro
public Iterator<String> keysAsStringIterator(int access)
keysAsStringIterator
in interface ComponentPro
public Iterator<Map.Entry<Collection.Key,Object>> entryIterator(int access)
entryIterator
in interface ComponentPro
public Iterator<Object> valueIterator(int access)
valueIterator
in interface ComponentPro
public Object get(int access, Collection.Key key) throws PageException
get
in interface ComponentPro
PageException
public Object get(int access, Collection.Key key, Object defaultValue)
get
in interface ComponentPro
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp, int access)
toDumpData
in interface ComponentPro
public boolean contains(int access, Collection.Key name)
contains
in interface ComponentPro
public Member getMember(int access, Collection.Key key, boolean dataMember, boolean superAccess)
getMember
in interface ComponentPro
Copyright © 2015 Lucee