org.universAAL.middleware.ui.rdf
Class FormElement

Package class diagram package FormElement
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
Direct Known Subclasses:
Form, FormControl, Label

public abstract class FormElement
extends FinalizedResource

Author:
amedrano

Field Summary
static String PROP_APPEARANCE
          FormElements may have Recommendations.
 
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
FormElement()
           
FormElement(boolean isXMLLiteral)
           
FormElement(String uri)
           
FormElement(String uri, boolean isXMLLiteral)
           
FormElement(String uriPrefix, int numProps)
           
 
Method Summary
 void addAppearanceRecommendation(Recommendation recommendation)
          Convenience method to add an Appearance recommendation, see ont.recommendation for the definition of possible recommendations.
 List getAppearanceRecommendations()
          Intended to be used by handlers, to iterate over the recommendations added to the FormElement.
 
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, setProperty, setPropertyPath, setPropertyPath, setPropertyPathFromOffset, setResourceComment, setResourceLabel, toString, toStringRecursive, toStringRecursive, unliteral
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_APPEARANCE

public static final String PROP_APPEARANCE
FormElements may have Recommendations.

See Also:
Constant Field Values
Constructor Detail

FormElement

public FormElement()

FormElement

public FormElement(boolean isXMLLiteral)
Parameters:
isXMLLiteral -

FormElement

public FormElement(String uri,
                   boolean isXMLLiteral)
Parameters:
uri -
isXMLLiteral -

FormElement

public FormElement(String uriPrefix,
                   int numProps)
Parameters:
uriPrefix -
numProps -

FormElement

public FormElement(String uri)
Parameters:
uri -
Method Detail

addAppearanceRecommendation

public void addAppearanceRecommendation(Recommendation recommendation)
Convenience method to add an Appearance recommendation, see ont.recommendation for the definition of possible recommendations. It is not granted that the recommendation will be followed when rendered.

Parameters:
recommendation - the Recommendation instance to add.

getAppearanceRecommendations

public List getAppearanceRecommendations()
Intended to be used by handlers, to iterate over the recommendations added to the FormElement.

Returns:
the List of Recommendations, that is empty if none are present.


Copyright © 2014 universAAL Consortium. All Rights Reserved.