org.openptk.structure
Class BasicStructure

java.lang.Object
  extended by org.openptk.structure.Structure
      extended by org.openptk.structure.BasicStructure
All Implemented Interfaces:
StructureIF

public class BasicStructure
extends Structure

Author:
Scott Fehrman, Sun Microsystems, Inc.

Field Summary
 
Fields inherited from interface org.openptk.structure.StructureIF
NAME_ACCESSED, NAME_ACTION, NAME_ACTIONID, NAME_ACTIONS, NAME_ALLOWMULTI, NAME_ANCESTORS, NAME_ANSWERS, NAME_ATTRIBUTE, NAME_ATTRIBUTES, NAME_AUTHENTICATOR, NAME_AUTHENTICATORID, NAME_AUTHENTICATORS, NAME_AVERAGE, NAME_BODY, NAME_CACHE, NAME_CACHEID, NAME_CACHES, NAME_CATEGORY, NAME_CHANGE, NAME_CHILDREN, NAME_CLASS, NAME_CLASSNAME, NAME_CLIENT, NAME_CLIENTID, NAME_CLIENTS, NAME_CONTEXT, NAME_CONTEXTID, NAME_CONTEXTS, NAME_CONVERTER, NAME_CONVERTERID, NAME_CONVERTERS, NAME_COUNT, NAME_CREATED, NAME_CRYPTO, NAME_DATA, NAME_DEBUGLEVEL, NAME_DECIDER, NAME_DECIDERID, NAME_DECIDERS, NAME_DEFAULT, NAME_DEFINITION, NAME_DESCRIPTION, NAME_DIGEST, NAME_DOCUMENT, NAME_EFFECT, NAME_ENCRYPTED, NAME_ENFORCER, NAME_ENFORCERID, NAME_ENFORCERS, NAME_ENGINE, NAME_ENVIRONMENT, NAME_ENVIRONMENTS, NAME_ERROR, NAME_FROM, NAME_ID, NAME_INDEX, NAME_LENGTH, NAME_LEVEL, NAME_LIBRARY, NAME_MAXIMUM, NAME_MEDIA, NAME_META, NAME_MIMETYPE, NAME_MINIMUM, NAME_MODE, NAME_MODEL, NAME_MODELID, NAME_MODELS, NAME_MODIFIED, NAME_NAME, NAME_OFFSET, NAME_OPERATION, NAME_OPERATIONS, NAME_PARAMPATH, NAME_PARAMQUERY, NAME_PASSWORD, NAME_PHASE, NAME_PLUGIN, NAME_PLUGINID, NAME_PLUGINS, NAME_POLICIES, NAME_POLICY, NAME_POLICYID, NAME_PRINCIPAL, NAME_PROPERTIES, NAME_PROPERTY, NAME_QUANTITY, NAME_QUERY, NAME_QUESTIONS, NAME_READONLY, NAME_RELATIONSHIP, NAME_RELATIONSHIPID, NAME_RELATIONSHIPS, NAME_REQUEST, NAME_REQUIRED, NAME_RESOURCE, NAME_RESOURCEID, NAME_RESOURCES, NAME_RESPONSE, NAME_RESULTS, NAME_SEARCH, NAME_SECRET, NAME_SERVICE, NAME_SESSION, NAME_SESSIONID, NAME_SESSIONINFO, NAME_SESSIONS, NAME_SIBLINGS, NAME_SORT, NAME_STAT, NAME_STATE, NAME_STATID, NAME_STATS, NAME_STATUS, NAME_STRUCTURE, NAME_STRUCTURES, NAME_SUBJECT, NAME_SUBJECTID, NAME_SUBJECTS, NAME_TARGET, NAME_TARGETID, NAME_TARGETS, NAME_TEMPLATE, NAME_TO, NAME_TYPE, NAME_TYPES, NAME_UNIQUEID, NAME_UPDATED, NAME_URI, NAME_VALUE, NAME_VALUES, NAME_VERSION, NAME_VIEW, NAME_VIEWID, NAME_VIEWS, NAME_VIRTUAL
 
Constructor Summary
BasicStructure(java.lang.String name)
          Create a new BasicStructure using the provided name.
BasicStructure(java.lang.String name, boolean value)
          Create a new BasicStructure using the provided name and value.
BasicStructure(java.lang.String name, java.lang.Boolean value)
          Create a new BasicStructure using the provided name and value.
BasicStructure(java.lang.String name, java.lang.Boolean[] values)
          Create a new BasicStructure using the provided name and array of values.
BasicStructure(java.lang.String name, int value)
          Create a new BasicStructure using the provided name and value.
BasicStructure(java.lang.String name, java.lang.Integer value)
          Create a new BasicStructure using the provided name and value.
BasicStructure(java.lang.String name, java.lang.Integer[] values)
          Create a new BasicStructure using the provided name and array of values.
BasicStructure(java.lang.String name, java.util.List<java.lang.String> values)
          Create a new BasicStructure using the provided name and List of values.
BasicStructure(java.lang.String name, java.lang.Long value)
          Create a new BasicStructure using the provided name and value.
BasicStructure(java.lang.String name, java.lang.Long[] values)
          Create a new BasicStructure using the provided name and array of values.
BasicStructure(java.lang.String name, java.lang.Object value)
          Create a new BasicStructure using the provided name and value.
BasicStructure(java.lang.String name, java.lang.Object[] values)
          Create a new BasicStructure using the provided name and array of values.
BasicStructure(java.lang.String name, java.lang.String value)
          Create a new BasicStructure using the provided name and value.
BasicStructure(java.lang.String name, java.lang.String[] values)
          Create a new BasicStructure using the provided name and Array of values.
BasicStructure(java.lang.String name, StructureIF struct)
          Create a new BasicStructure using the provide name and child Strucuture.
 
Method Summary
 
Methods inherited from class org.openptk.structure.Structure
addChild, addValue, addValue, addValue, addValue, addValue, addValue, addValue, addValue, getChild, getChildren, getChildren, getChildrenAsArray, getChildrenAsArray, getChildrenIds, getName, getParent, getState, getValue, getValueAsString, getValues, getValuesAsArray, getValuesAsString, getValueType, hasChild, hasChildren, isMultiValued, setChild, setName, setParent, setState, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicStructure

public BasicStructure(java.lang.String name)
Create a new BasicStructure using the provided name. The structure will NOT have a type. This can either contain a value OR contain children, NOT BOTH.

Parameters:
name - Name of the Structure

BasicStructure

public BasicStructure(java.lang.String name,
                      boolean value)
Create a new BasicStructure using the provided name and value. The structure will be of type BOOLEAN and it is single valued. This structure can not have any children.

Parameters:
name - Name of the Structure
value - boolean

BasicStructure

public BasicStructure(java.lang.String name,
                      java.lang.Boolean value)
Create a new BasicStructure using the provided name and value. The structure will be of type BOOLEAN and it is single valued. This structure can not have any children.

Parameters:
name - Name of the Structure
value - Boolean

BasicStructure

public BasicStructure(java.lang.String name,
                      java.lang.Boolean[] values)
Create a new BasicStructure using the provided name and array of values. The structure will be of type BOOLEAN and it is multi valued. This structure can not have any children.

Parameters:
name - Name of the Structure
values - Array of Boolean values

BasicStructure

public BasicStructure(java.lang.String name,
                      int value)
Create a new BasicStructure using the provided name and value. The structure will be of type INTEGER and it is single valued. This structure can not have any children.

Parameters:
name - Name of the Structure
value - Strucutre's int value

BasicStructure

public BasicStructure(java.lang.String name,
                      java.lang.Integer value)
Create a new BasicStructure using the provided name and value. The structure will be of type INTEGER and it is single valued. This structure can not have any children.

Parameters:
name - Name of the Structure
value - Strucutre's Integer value

BasicStructure

public BasicStructure(java.lang.String name,
                      java.lang.Integer[] values)
Create a new BasicStructure using the provided name and array of values. The structure will be of type INTEGER and it is multi valued. This structure can not have any children.

Parameters:
name - Name of the Structure
values - Array of Integers

BasicStructure

public BasicStructure(java.lang.String name,
                      java.util.List<java.lang.String> values)
Create a new BasicStructure using the provided name and List of values. The structure will be of type STRING and it is multi valued. This structure can not have any children.

Parameters:
name - Name of the Structure
values - List of values

BasicStructure

public BasicStructure(java.lang.String name,
                      java.lang.Long value)
Create a new BasicStructure using the provided name and value. The structure will be of type LONG and it is single valued. This structure can not have any children.

Parameters:
name - Name of the Structure
value - Strucutre's Long value

BasicStructure

public BasicStructure(java.lang.String name,
                      java.lang.Long[] values)
Create a new BasicStructure using the provided name and array of values. The structure will be of type LONG and it is multi valued. This structure can not have any children.

Parameters:
name - Name of the Structure
values - Array of Longs

BasicStructure

public BasicStructure(java.lang.String name,
                      java.lang.Object value)
Create a new BasicStructure using the provided name and value. The structure will be of type OBJECT and it is single valued. This structure can not have any children.

Parameters:
name - Name of the Structure
value - Object

BasicStructure

public BasicStructure(java.lang.String name,
                      java.lang.Object[] values)
Create a new BasicStructure using the provided name and array of values. The structure will be of type OBJECT and it is multi valued. This structure can not have any children.

Parameters:
name - Name of the Structure
values - Array of Object values

BasicStructure

public BasicStructure(java.lang.String name,
                      java.lang.String value)
Create a new BasicStructure using the provided name and value. The structure will be of type STRING and it is single valued. This structure can not have any children.

Parameters:
name - Name of the Structure
value - Strucutre's value

BasicStructure

public BasicStructure(java.lang.String name,
                      java.lang.String[] values)
Create a new BasicStructure using the provided name and Array of values. The structure will be of type STRING and it is multi valued. This structure can not have any children.

Parameters:
name - Name of the Structure
values - Array of values

BasicStructure

public BasicStructure(java.lang.String name,
                      StructureIF struct)
Create a new BasicStructure using the provide name and child Strucuture. The structure will be of type STRUCTURE. This structure can not contain a value.

Parameters:
name - Name of the Structure
struct - The child Structure


View/submit a bug or feature

For further API reference and developer documentation, see www.openptk.org. That documentation contains more detailed, developer-targeted descriptions, definitions of terms, workarounds, and working code examples.

Copyright (C) 2008-2012, Project OpenPTK. All Rights Reserved