org.universAAL.middleware.ui.rdf
Class SimpleOutput

Package class diagram package SimpleOutput
java.lang.Object
  extended by org.universAAL.middleware.rdf.Resource
      extended by org.universAAL.middleware.rdf.FinalizedResource
          extended by org.universAAL.middleware.ui.rdf.FormElement
              extended by org.universAAL.middleware.ui.rdf.FormControl
                  extended by org.universAAL.middleware.ui.rdf.Output
                      extended by org.universAAL.middleware.ui.rdf.SimpleOutput

public class SimpleOutput
extends Output

The default Output control containing info in form of plain text or another simple type supported by TypeMapper.

Author:
mtazari, Carsten Stockloew

Field Summary
static String MY_URI
           
static String PROP_CONTENT
          For local storage of the contained info if this info is not accessible from the form data.
 
Fields inherited from class org.universAAL.middleware.ui.rdf.FormControl
PROP_CONTROL_LABEL, PROP_HELP, PROP_HINT, PROP_PARENT_CONTROL, PROP_REFERENCED_PPATH, PROP_VALUE_RESTRICTION
 
Fields inherited from class org.universAAL.middleware.ui.rdf.FormElement
PROP_APPEARANCE
 
Fields inherited from class org.universAAL.middleware.rdf.Resource
ANON_URI_PREFIX, blockAddingTypes, isXMLLiteral, ns_delim_index, PROP_RDF_FIRST, PROP_RDF_REST, PROP_RDF_TYPE, PROP_RDFS_COMMENT, PROP_RDFS_LABEL, PROP_SERIALIZATION_FULL, PROP_SERIALIZATION_OPTIONAL, PROP_SERIALIZATION_REDUCED, PROP_SERIALIZATION_UNDEFINED, PROP_uAAL_INVOLVED_HUMAN_USER, props, RDF_EMPTY_LIST, RDF_NAMESPACE, RDFS_NAMESPACE, TYPE_RDF_LIST, TYPE_RDFS_CLASS, uAAL_NAMESPACE_PREFIX, uAAL_SERVICE_NAMESPACE, uAAL_VOCABULARY_NAMESPACE, uri
 
Constructor Summary
SimpleOutput()
          For exclusive use by de-serializers.
SimpleOutput(Group parent, Label label, PropertyPath ref, Object content)
          For exclusive use by applications.
 
Method Summary
 Object getContent()
          Returns the contained info as an instance of one of the classes supported by TypeMapper.
 Object getValue()
          Overrides FormControl.getValue() in order to additionally consider the local storage using PROP_CONTENT.
 boolean setProperty(String propURI, Object value)
          For usage by de-serializers.
 
Methods inherited from class org.universAAL.middleware.ui.rdf.FormControl
getAncestorRepeat, getFormObject, getHelpString, getHintString, getLabel, getMaxLength, getParentGroup, getParentRepeat, getReferencedPPath, getRestrictions, getSuperGroups, getTypeURI, hasFocus, hasValue, isOfBooleanType, isOfPrimitiveType, isRepeatable, setHelpString, setHintString, toString
 
Methods inherited from class org.universAAL.middleware.ui.rdf.FormElement
addAppearanceRecommendation, getAppearanceRecommendations
 
Methods inherited from class org.universAAL.middleware.rdf.FinalizedResource
addType, getLocalName, getNamespace, getProperty, getPropertyURIs, getType, getTypes, getURI, hasQualifiedName, isAnon, numberOfProperties
 
Methods inherited from class org.universAAL.middleware.rdf.Resource
addMultiLangProp, asList, asList, asRDFList, changeProperty, copy, deepCopy, equals, generateAnonURI, getDefaultLang, getFilename, getMultiLangProp, getOrConstructLabel, getPropSerializationType, getResource, getResourceComment, getResourceLabel, getStaticFieldValue, hashCode, hasProperty, isAnon, isBlockingAddingTypes, isClosedCollection, isQualifiedName, isWellFormed, literal, representsQualifiedURI, serializesAsXMLLiteral, setPropertyPath, setPropertyPath, setPropertyPathFromOffset, setResourceComment, setResourceLabel, toStringRecursive, toStringRecursive, unliteral
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MY_URI

public static final String MY_URI
See Also:
Constant Field Values

PROP_CONTENT

public static final String PROP_CONTENT
For local storage of the contained info if this info is not accessible from the form data.

See Also:
Constant Field Values
Constructor Detail

SimpleOutput

public SimpleOutput()
For exclusive use by de-serializers.


SimpleOutput

public SimpleOutput(Group parent,
                    Label label,
                    PropertyPath ref,
                    Object content)
For exclusive use by applications.

Parameters:
parent - The mandatory parent group as the direct container of this input field. See FormControl.PROP_PARENT_CONTROL.
label - The optional Label to be associated with this input field. See FormControl.PROP_CONTROL_LABEL.
ref - See FormControl.PROP_REFERENCED_PPATH; optional.
content - The contained info. If the previous parameter ( ref) is not null, it will be stored as part of the form data, otherwise locally using PROP_CONTENT.
Method Detail

getContent

public Object getContent()
Returns the contained info as an instance of one of the classes supported by TypeMapper.


getValue

public Object getValue()
Overrides FormControl.getValue() in order to additionally consider the local storage using PROP_CONTENT.

Overrides:
getValue in class FormControl

setProperty

public boolean setProperty(String propURI,
                           Object value)
For usage by de-serializers.

Overrides:
setProperty in class FormControl
Returns:
true if the property changed as a result of the call
See Also:
Resource.setProperty(String, Object)


Copyright © 2014 universAAL Consortium. All Rights Reserved.