|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Variable
Interface that represents a Variable
Field Summary | |
---|---|
static java.lang.String |
INITIALIZE_ONCE_PER_REQUEST
|
static java.lang.String |
METHOD_BASE_CLASS
|
static java.lang.String |
ONCHANGE_METHOD_PROPERTY
Name of method to call when the top-level value of this variable changes. |
static int |
PERSIST_NOTPERSISTED
Variable value can be set per-session, but has no state that needs to be stored, e.g. for failover. |
static int |
PERSIST_READONLY
Variable value can be set only during regen, and the value is shared among all sessions. |
static int |
PERSIST_REQUEST_SCOPE
Variable is request scoped, which implies read-write and not persisted for failover. |
static int |
PERSIST_STATEFUL
Variable has session state that needs to be maintained. |
static int |
SCOPE_APPLICATION
Instance of this variable is stored in application (WAR) scope for use by all servlets/JSPs/code running withing the same web app. |
static int |
SCOPE_NONE
Instance of this variable is returned, but not stored in request/session |
static int |
SCOPE_REQUEST
Instance of this variable is stored as a request attribute. |
static int |
SCOPE_SESSION
Instance of this variable is stored as a session attribute. |
static java.lang.String |
TYPE_BOOLEAN
|
static java.lang.String |
TYPE_DOUBLE
|
static java.lang.String |
TYPE_FLOAT
|
static java.lang.String |
TYPE_INTEGER
|
static java.lang.String |
TYPE_LONG
|
static java.lang.String |
TYPE_OBJECT
|
static java.lang.String |
TYPE_STRING
|
static java.lang.String |
TYPE_XML
|
Fields inherited from interface com.bowstreet.webapp.WebAppObject |
---|
ALWAYS_VISIBLE, INFORMATION_PROPERTY, NEVER_VISIBLE, SOMETIMES_VISIBLE |
Method Summary | |
---|---|
DataDefinitionElement |
getDataDefinition()
Get the DataDefinition (i.e. interpretation of the SchemaPath |
java.util.Iterator |
getInitializationProperties()
Get an iterator over the initialization properties. |
InitializationProperty |
getInitializationProperty(java.lang.String propertyName)
Get an initialization property for this variable, by property name. |
boolean |
getInitializeEveryFetch()
Sets flag to require re-initialization on each fetch |
java.lang.String |
getInstantiateMethod()
Gets method for instantiating object |
java.lang.Object |
getInternalValue()
Get Object value for variable, without causing instantiation |
java.lang.String |
getObjectClassName()
Gets the ObjectClassName of this variable. |
int |
getPersistFlag()
Get persistence flag for object |
java.lang.String |
getSchemaPath()
Get schemaPath associated with an XML Variable (null if not XML) |
java.lang.String |
getType()
Gets the type of this variable. |
java.lang.Object |
getValue()
Get Object value for variable |
InitializationProperty |
setInitializationProperty(java.lang.String propertyName,
java.lang.Object value)
Set an initialization property for this variable. |
void |
setInitializeEveryFetch(boolean everyTime)
Sets flag to require re-initialization on each fetch |
void |
setInstantiateMethod(java.lang.String methodName)
Sets method for instantiating object |
void |
setObjectClassName(java.lang.String objectClassName)
Sets the ObjectClassName of this variable. |
void |
setPersistFlag(int persistFlag)
Sets persistence flag for object |
void |
setSchemaPath(java.lang.String schemaPath)
Set the schemaPath for a schema type/element associated with an XML Variable. |
void |
setType(java.lang.String type)
Sets the type of this variable. |
void |
setValue(java.lang.Object value)
Sets value |
void |
setValueFromString(java.lang.String valueString)
Set value from String (for XML, will parse) |
Methods inherited from interface com.bowstreet.webapp.WebAppObject |
---|
clone, getBuilderCall, getName, getProperties, getProperty, getVisibility, isHidden, putProperty, setBuilderCall, setHidden, setName, setVisibility |
Methods inherited from interface com.bowstreet.util.IExemplar |
---|
newInstance |
Field Detail |
---|
static final java.lang.String INITIALIZE_ONCE_PER_REQUEST
static final java.lang.String METHOD_BASE_CLASS
static final java.lang.String ONCHANGE_METHOD_PROPERTY
static final int PERSIST_NOTPERSISTED
static final int PERSIST_READONLY
static final int PERSIST_REQUEST_SCOPE
static final int PERSIST_STATEFUL
static final int SCOPE_APPLICATION
static final int SCOPE_NONE
static final int SCOPE_REQUEST
static final int SCOPE_SESSION
static final java.lang.String TYPE_BOOLEAN
static final java.lang.String TYPE_DOUBLE
static final java.lang.String TYPE_FLOAT
static final java.lang.String TYPE_INTEGER
static final java.lang.String TYPE_LONG
static final java.lang.String TYPE_OBJECT
static final java.lang.String TYPE_STRING
static final java.lang.String TYPE_XML
Method Detail |
---|
DataDefinitionElement getDataDefinition()
java.util.Iterator getInitializationProperties()
InitializationProperty getInitializationProperty(java.lang.String propertyName)
propertyName
- naming the property value to retrieve
boolean getInitializeEveryFetch()
java.lang.String getInstantiateMethod()
java.lang.Object getInternalValue()
java.lang.String getObjectClassName()
int getPersistFlag()
java.lang.String getSchemaPath()
java.lang.String getType()
java.lang.Object getValue()
InitializationProperty setInitializationProperty(java.lang.String propertyName, java.lang.Object value)
propertyName
- String that names the initialization propertyvalue
- (eg, String, Map or List)
void setInitializeEveryFetch(boolean everyTime)
void setInstantiateMethod(java.lang.String methodName)
void setObjectClassName(java.lang.String objectClassName)
objectClassName
- The name of the Java class
to use with this variable.void setPersistFlag(int persistFlag)
persistFlag
- One of the PERSIST_ values.void setSchemaPath(java.lang.String schemaPath)
schemaPath
- string represenation (eg, "void setType(java.lang.String type)
type
- The type of this variable.void setValue(java.lang.Object value)
void setValueFromString(java.lang.String valueString) throws java.lang.Exception
java.lang.Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |