|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StructureIF
The Structure (interface and classes) is a generic class that supports two main features.
Field Summary | |
---|---|
static java.lang.String |
NAME_ACCESSED
|
static java.lang.String |
NAME_ACTION
|
static java.lang.String |
NAME_ACTIONID
|
static java.lang.String |
NAME_ACTIONS
|
static java.lang.String |
NAME_ALLOWMULTI
|
static java.lang.String |
NAME_ANCESTORS
|
static java.lang.String |
NAME_ANSWERS
|
static java.lang.String |
NAME_ATTRIBUTE
|
static java.lang.String |
NAME_ATTRIBUTES
|
static java.lang.String |
NAME_AUTHENTICATOR
|
static java.lang.String |
NAME_AUTHENTICATORID
|
static java.lang.String |
NAME_AUTHENTICATORS
|
static java.lang.String |
NAME_AVERAGE
|
static java.lang.String |
NAME_BODY
|
static java.lang.String |
NAME_CACHE
|
static java.lang.String |
NAME_CACHEID
|
static java.lang.String |
NAME_CACHES
|
static java.lang.String |
NAME_CATEGORY
|
static java.lang.String |
NAME_CHANGE
|
static java.lang.String |
NAME_CHILDREN
|
static java.lang.String |
NAME_CLASS
|
static java.lang.String |
NAME_CLASSNAME
|
static java.lang.String |
NAME_CLIENT
|
static java.lang.String |
NAME_CLIENTID
|
static java.lang.String |
NAME_CLIENTS
|
static java.lang.String |
NAME_CONTEXT
|
static java.lang.String |
NAME_CONTEXTID
|
static java.lang.String |
NAME_CONTEXTS
|
static java.lang.String |
NAME_CONVERTER
|
static java.lang.String |
NAME_CONVERTERID
|
static java.lang.String |
NAME_CONVERTERS
|
static java.lang.String |
NAME_COUNT
|
static java.lang.String |
NAME_CREATED
|
static java.lang.String |
NAME_CRYPTO
|
static java.lang.String |
NAME_DATA
|
static java.lang.String |
NAME_DEBUGLEVEL
|
static java.lang.String |
NAME_DECIDER
|
static java.lang.String |
NAME_DECIDERID
|
static java.lang.String |
NAME_DECIDERS
|
static java.lang.String |
NAME_DEFAULT
|
static java.lang.String |
NAME_DEFINITION
|
static java.lang.String |
NAME_DESCRIPTION
|
static java.lang.String |
NAME_DIGEST
|
static java.lang.String |
NAME_DOCUMENT
|
static java.lang.String |
NAME_EFFECT
|
static java.lang.String |
NAME_ENCRYPTED
|
static java.lang.String |
NAME_ENFORCER
|
static java.lang.String |
NAME_ENFORCERID
|
static java.lang.String |
NAME_ENFORCERS
|
static java.lang.String |
NAME_ENGINE
|
static java.lang.String |
NAME_ENVIRONMENT
|
static java.lang.String |
NAME_ENVIRONMENTS
|
static java.lang.String |
NAME_ERROR
|
static java.lang.String |
NAME_FROM
|
static java.lang.String |
NAME_ID
|
static java.lang.String |
NAME_INDEX
|
static java.lang.String |
NAME_LENGTH
|
static java.lang.String |
NAME_LEVEL
|
static java.lang.String |
NAME_LIBRARY
|
static java.lang.String |
NAME_MAXIMUM
|
static java.lang.String |
NAME_MEDIA
|
static java.lang.String |
NAME_META
|
static java.lang.String |
NAME_MIMETYPE
|
static java.lang.String |
NAME_MINIMUM
|
static java.lang.String |
NAME_MODE
|
static java.lang.String |
NAME_MODEL
|
static java.lang.String |
NAME_MODELID
|
static java.lang.String |
NAME_MODELS
|
static java.lang.String |
NAME_MODIFIED
|
static java.lang.String |
NAME_NAME
|
static java.lang.String |
NAME_OFFSET
|
static java.lang.String |
NAME_OPERATION
|
static java.lang.String |
NAME_OPERATIONS
|
static java.lang.String |
NAME_PARAMPATH
|
static java.lang.String |
NAME_PARAMQUERY
|
static java.lang.String |
NAME_PASSWORD
|
static java.lang.String |
NAME_PHASE
|
static java.lang.String |
NAME_PLUGIN
|
static java.lang.String |
NAME_PLUGINID
|
static java.lang.String |
NAME_PLUGINS
|
static java.lang.String |
NAME_POLICIES
|
static java.lang.String |
NAME_POLICY
|
static java.lang.String |
NAME_POLICYID
|
static java.lang.String |
NAME_PRINCIPAL
|
static java.lang.String |
NAME_PROPERTIES
|
static java.lang.String |
NAME_PROPERTY
|
static java.lang.String |
NAME_QUANTITY
|
static java.lang.String |
NAME_QUERY
|
static java.lang.String |
NAME_QUESTIONS
|
static java.lang.String |
NAME_READONLY
|
static java.lang.String |
NAME_RELATIONSHIP
|
static java.lang.String |
NAME_RELATIONSHIPID
|
static java.lang.String |
NAME_RELATIONSHIPS
|
static java.lang.String |
NAME_REQUEST
|
static java.lang.String |
NAME_REQUIRED
|
static java.lang.String |
NAME_RESOURCE
|
static java.lang.String |
NAME_RESOURCEID
|
static java.lang.String |
NAME_RESOURCES
|
static java.lang.String |
NAME_RESPONSE
|
static java.lang.String |
NAME_RESULTS
|
static java.lang.String |
NAME_SEARCH
|
static java.lang.String |
NAME_SECRET
|
static java.lang.String |
NAME_SERVICE
|
static java.lang.String |
NAME_SESSION
|
static java.lang.String |
NAME_SESSIONID
|
static java.lang.String |
NAME_SESSIONINFO
|
static java.lang.String |
NAME_SESSIONS
|
static java.lang.String |
NAME_SIBLINGS
|
static java.lang.String |
NAME_SORT
|
static java.lang.String |
NAME_STAT
|
static java.lang.String |
NAME_STATE
|
static java.lang.String |
NAME_STATID
|
static java.lang.String |
NAME_STATS
|
static java.lang.String |
NAME_STATUS
|
static java.lang.String |
NAME_STRUCTURE
|
static java.lang.String |
NAME_STRUCTURES
|
static java.lang.String |
NAME_SUBJECT
|
static java.lang.String |
NAME_SUBJECTID
|
static java.lang.String |
NAME_SUBJECTS
|
static java.lang.String |
NAME_TARGET
|
static java.lang.String |
NAME_TARGETID
|
static java.lang.String |
NAME_TARGETS
|
static java.lang.String |
NAME_TEMPLATE
|
static java.lang.String |
NAME_TO
|
static java.lang.String |
NAME_TYPE
|
static java.lang.String |
NAME_TYPES
|
static java.lang.String |
NAME_UNIQUEID
|
static java.lang.String |
NAME_UPDATED
|
static java.lang.String |
NAME_URI
|
static java.lang.String |
NAME_VALUE
|
static java.lang.String |
NAME_VALUES
|
static java.lang.String |
NAME_VERSION
|
static java.lang.String |
NAME_VIEW
|
static java.lang.String |
NAME_VIEWID
|
static java.lang.String |
NAME_VIEWS
|
static java.lang.String |
NAME_VIRTUAL
|
Method Summary | |
---|---|
void |
addChild(StructureIF struct)
Adds the provided Structure as a Child. |
void |
addValue(boolean value)
Add boolean to the Structure's value. |
void |
addValue(java.lang.Boolean value)
Add Boolean to the Structure's value. |
void |
addValue(int value)
Add integer to the Structure's value. |
void |
addValue(java.lang.Integer value)
Add Integer to the Structure's value. |
void |
addValue(long value)
Add long to the Structure value. |
void |
addValue(java.lang.Long value)
Add Long to the Structure value. |
void |
addValue(java.lang.Object value)
Add Object to the Structure's value. |
void |
addValue(java.lang.String value)
Add String to the Structure's value. |
StructureIF |
getChild(java.lang.String name)
Returns the specified Child Structure. |
java.util.List<StructureIF> |
getChildren()
Returns all Child Structures as a List. |
java.util.List<StructureIF> |
getChildren(java.lang.String name)
Returns a List (of Children) that match the provided name. |
StructureIF[] |
getChildrenAsArray()
Returns all Child Structures as an Array. |
StructureIF[] |
getChildrenAsArray(java.lang.String name)
Returns an Structure array (of Children) that match the provided name. |
java.lang.String[] |
getChildrenIds()
Returns a String Array containing the Childrens id (name). |
java.lang.String |
getName()
Get the Structure's name. |
StructureIF |
getParent()
Returns the Structure's Parent (if it is a Child). |
State |
getState()
Get the Structure's State. |
java.lang.Object |
getValue()
Returns the value (if single valued) or the first value (is multi valued) If there is no value, null will be returned. |
java.lang.String |
getValueAsString()
Returns a String representation of the (first) value. |
java.util.List<java.lang.Object> |
getValues()
Returns the List of values (Object). |
java.lang.Object[] |
getValuesAsArray()
Returns an Array of values (Object). |
java.lang.String |
getValuesAsString()
Returns a String representation of all (List) the values. |
StructureType |
getValueType()
Returns the Structure's Type. |
boolean |
hasChild(java.lang.String name)
Returns TRUE if a Child exists with the specified name. |
boolean |
hasChildren()
Returns TRUE if the Structure contains one or more Children. |
boolean |
isMultiValued()
Returns TRUE if the Structure contains more than 1 (one) value. |
void |
setChild(int index,
StructureIF child)
Sets / Replaces a specific Child with the provided Structure. |
void |
setName(java.lang.String name)
Set the Structure's name. |
void |
setParent(StructureIF struct)
Set the Structure's parent. |
void |
setState(State state)
Set the Structure's State. |
Field Detail |
---|
static final java.lang.String NAME_ACCESSED
static final java.lang.String NAME_ACTION
static final java.lang.String NAME_ACTIONID
static final java.lang.String NAME_ACTIONS
static final java.lang.String NAME_ALLOWMULTI
static final java.lang.String NAME_ANCESTORS
static final java.lang.String NAME_ANSWERS
static final java.lang.String NAME_ATTRIBUTE
static final java.lang.String NAME_ATTRIBUTES
static final java.lang.String NAME_AUTHENTICATOR
static final java.lang.String NAME_AUTHENTICATORID
static final java.lang.String NAME_AUTHENTICATORS
static final java.lang.String NAME_AVERAGE
static final java.lang.String NAME_BODY
static final java.lang.String NAME_CACHE
static final java.lang.String NAME_CACHEID
static final java.lang.String NAME_CACHES
static final java.lang.String NAME_CATEGORY
static final java.lang.String NAME_CHANGE
static final java.lang.String NAME_CHILDREN
static final java.lang.String NAME_CLASS
static final java.lang.String NAME_CLASSNAME
static final java.lang.String NAME_CLIENT
static final java.lang.String NAME_CLIENTID
static final java.lang.String NAME_CLIENTS
static final java.lang.String NAME_CONTEXT
static final java.lang.String NAME_CONTEXTID
static final java.lang.String NAME_CONTEXTS
static final java.lang.String NAME_CONVERTER
static final java.lang.String NAME_CONVERTERID
static final java.lang.String NAME_CONVERTERS
static final java.lang.String NAME_COUNT
static final java.lang.String NAME_CREATED
static final java.lang.String NAME_CRYPTO
static final java.lang.String NAME_DATA
static final java.lang.String NAME_DEBUGLEVEL
static final java.lang.String NAME_DECIDER
static final java.lang.String NAME_DECIDERID
static final java.lang.String NAME_DECIDERS
static final java.lang.String NAME_DEFAULT
static final java.lang.String NAME_DEFINITION
static final java.lang.String NAME_DESCRIPTION
static final java.lang.String NAME_DIGEST
static final java.lang.String NAME_DOCUMENT
static final java.lang.String NAME_EFFECT
static final java.lang.String NAME_ENCRYPTED
static final java.lang.String NAME_ENFORCER
static final java.lang.String NAME_ENFORCERID
static final java.lang.String NAME_ENFORCERS
static final java.lang.String NAME_ENGINE
static final java.lang.String NAME_ENVIRONMENT
static final java.lang.String NAME_ENVIRONMENTS
static final java.lang.String NAME_ERROR
static final java.lang.String NAME_FROM
static final java.lang.String NAME_ID
static final java.lang.String NAME_INDEX
static final java.lang.String NAME_LENGTH
static final java.lang.String NAME_LEVEL
static final java.lang.String NAME_LIBRARY
static final java.lang.String NAME_MAXIMUM
static final java.lang.String NAME_MEDIA
static final java.lang.String NAME_META
static final java.lang.String NAME_MIMETYPE
static final java.lang.String NAME_MINIMUM
static final java.lang.String NAME_MODE
static final java.lang.String NAME_MODEL
static final java.lang.String NAME_MODELID
static final java.lang.String NAME_MODELS
static final java.lang.String NAME_MODIFIED
static final java.lang.String NAME_NAME
static final java.lang.String NAME_OFFSET
static final java.lang.String NAME_OPERATION
static final java.lang.String NAME_OPERATIONS
static final java.lang.String NAME_PARAMPATH
static final java.lang.String NAME_PARAMQUERY
static final java.lang.String NAME_PASSWORD
static final java.lang.String NAME_PHASE
static final java.lang.String NAME_PLUGIN
static final java.lang.String NAME_PLUGINID
static final java.lang.String NAME_PLUGINS
static final java.lang.String NAME_POLICIES
static final java.lang.String NAME_POLICY
static final java.lang.String NAME_POLICYID
static final java.lang.String NAME_PRINCIPAL
static final java.lang.String NAME_PROPERTIES
static final java.lang.String NAME_PROPERTY
static final java.lang.String NAME_QUANTITY
static final java.lang.String NAME_QUERY
static final java.lang.String NAME_QUESTIONS
static final java.lang.String NAME_READONLY
static final java.lang.String NAME_RELATIONSHIP
static final java.lang.String NAME_RELATIONSHIPID
static final java.lang.String NAME_RELATIONSHIPS
static final java.lang.String NAME_REQUEST
static final java.lang.String NAME_REQUIRED
static final java.lang.String NAME_RESOURCE
static final java.lang.String NAME_RESOURCEID
static final java.lang.String NAME_RESOURCES
static final java.lang.String NAME_RESPONSE
static final java.lang.String NAME_RESULTS
static final java.lang.String NAME_SEARCH
static final java.lang.String NAME_SECRET
static final java.lang.String NAME_SERVICE
static final java.lang.String NAME_SESSION
static final java.lang.String NAME_SESSIONID
static final java.lang.String NAME_SESSIONINFO
static final java.lang.String NAME_SESSIONS
static final java.lang.String NAME_SIBLINGS
static final java.lang.String NAME_SORT
static final java.lang.String NAME_STAT
static final java.lang.String NAME_STATE
static final java.lang.String NAME_STATID
static final java.lang.String NAME_STATS
static final java.lang.String NAME_STATUS
static final java.lang.String NAME_STRUCTURE
static final java.lang.String NAME_STRUCTURES
static final java.lang.String NAME_SUBJECT
static final java.lang.String NAME_SUBJECTID
static final java.lang.String NAME_SUBJECTS
static final java.lang.String NAME_TARGET
static final java.lang.String NAME_TARGETID
static final java.lang.String NAME_TARGETS
static final java.lang.String NAME_TEMPLATE
static final java.lang.String NAME_TO
static final java.lang.String NAME_TYPE
static final java.lang.String NAME_TYPES
static final java.lang.String NAME_UNIQUEID
static final java.lang.String NAME_UPDATED
static final java.lang.String NAME_URI
static final java.lang.String NAME_VALUE
static final java.lang.String NAME_VALUES
static final java.lang.String NAME_VERSION
static final java.lang.String NAME_VIEW
static final java.lang.String NAME_VIEWID
static final java.lang.String NAME_VIEWS
static final java.lang.String NAME_VIRTUAL
Method Detail |
---|
void addChild(StructureIF struct) throws StructureException
struct
- Child Structure
StructureException
void addValue(boolean value) throws StructureException
value
- boolean to add
StructureException
void addValue(java.lang.Boolean value) throws StructureException
value
- Boolean to add
StructureException
void addValue(int value) throws StructureException
value
- integer to add
StructureException
void addValue(java.lang.Integer value) throws StructureException
value
- Integer to add
StructureException
void addValue(long value) throws StructureException
value
- long to add
StructureException
void addValue(java.lang.Long value) throws StructureException
value
- Long to add
StructureException
void addValue(java.lang.Object value) throws StructureException
value
- Object to add
StructureException
void addValue(java.lang.String value) throws StructureException
value
- String to add
StructureException
StructureIF getChild(java.lang.String name)
name
- Child Structure's name
java.util.List<StructureIF> getChildren()
java.util.List<StructureIF> getChildren(java.lang.String name)
name
- The child name
StructureIF[] getChildrenAsArray()
StructureIF[] getChildrenAsArray(java.lang.String name)
name
- The child name
java.lang.String[] getChildrenIds()
java.lang.String getName()
StructureIF getParent()
State getState()
java.lang.Object getValue()
java.lang.String getValueAsString()
java.util.List<java.lang.Object> getValues()
java.lang.Object[] getValuesAsArray()
java.lang.String getValuesAsString()
StructureType getValueType()
boolean hasChild(java.lang.String name)
name
- Child Structure name
boolean hasChildren()
boolean isMultiValued()
void setChild(int index, StructureIF child) throws StructureException
index
- child offsetchild
- Child Structure
StructureException
void setName(java.lang.String name)
name
- Structure's namevoid setParent(StructureIF struct)
Note: In most situation this method should not be used / needed. The Child/Parent relationship is maintained by the addChild() and setChild() methods.
struct
- Parent Structurevoid setState(State state)
state
- A valid State
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |