public class Value extends RichTextContainer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
A_CHECKED
The name of the checked attribute
|
static java.lang.String |
A_CONFIDENCE
The name of the confidence attribute
|
static java.lang.String |
A_OPTION
The name of the option value attribute
|
static java.lang.String |
A_TYPE
The name of the value type attribute
|
static java.lang.String |
E_VALUE
The name of the value element
|
static java.lang.String |
TYPE_AUTHORITY
value of the metadata authority code associated with a raw value
|
static java.lang.String |
TYPE_INTERPRETED |
static java.lang.String |
TYPE_OPTION |
static java.lang.String |
TYPE_RAW
The possible value types
|
static java.lang.String[] |
TYPES
All the possible value types collected into one array.
|
context| Modifier | Constructor and Description |
|---|---|
protected |
Value(WingContext context,
java.lang.String type)
Construct a new field value, when used in a multiple value context
|
protected |
Value(WingContext context,
java.lang.String type,
boolean checked)
Construct a new field value, when used in a multiple value context
|
protected |
Value(WingContext context,
java.lang.String type,
java.lang.String optionOrConfidence)
Construct a new field value, when used in a multiple value context
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getType() |
void |
toSAX(org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ext.LexicalHandler lexicalHandler,
org.xml.sax.helpers.NamespaceSupport namespaces)
Translate this element and all contained elements into SAX events.
|
addButton, addButton, addCheckBox, addCheckBox, addComposite, addComposite, addFigure, addFigure, addFile, addFile, addHidden, addHidden, addHighlight, addPassword, addPassword, addRadio, addRadio, addSelect, addSelect, addText, addText, addTextArea, addTextArea, addXref, addXref, addXref, addXref, addXref, addXref, addXrefaddContent, addContent, addContentendElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElementpublic static final java.lang.String E_VALUE
public static final java.lang.String A_TYPE
public static final java.lang.String A_OPTION
public static final java.lang.String A_CHECKED
public static final java.lang.String A_CONFIDENCE
public static final java.lang.String TYPE_RAW
public static final java.lang.String TYPE_INTERPRETED
public static final java.lang.String TYPE_OPTION
public static final java.lang.String TYPE_AUTHORITY
public static final java.lang.String[] TYPES
protected Value(WingContext context, java.lang.String type) throws WingException
context - (Required) The context this element is contained intype - (may be null) Determine the value's type, raw, default or
interpreted. If the value is null, then raw is used.WingExceptionprotected Value(WingContext context, java.lang.String type, java.lang.String optionOrConfidence) throws WingException
context - (Required) The context this element is contained intype - (may be null) Determine the value's type, raw, default or
interpreted. If the value is null, then raw is used.optionOrConfidence - (May be null) when type is TYPE_AUTHORITY, this is the
symbolic confidence value, otherwise it is the option value.WingExceptionprotected Value(WingContext context, java.lang.String type, boolean checked) throws WingException
context - (Required) The context this element is contained intype - (may be null) Determine the value's type, raw, default or
interpreted. If the value is null, then raw is used.checked - (Required) Determine if the value is checked, only valid for
checkboxes and radio buttonsWingExceptionprotected java.lang.String getType()
public void toSAX(org.xml.sax.ContentHandler contentHandler,
org.xml.sax.ext.LexicalHandler lexicalHandler,
org.xml.sax.helpers.NamespaceSupport namespaces)
throws org.xml.sax.SAXException
toSAX in interface WingElementtoSAX in class ContainercontentHandler - (Required) The registered contentHandler where SAX events
should be routed too.lexicalHandler - (Required) The registered lexicalHandler where lexical events
(such as CDATA, DTD, etc) should be routed too.namespaces - (Required) SAX Helper class to keep track of namespaces able
to determine the correct prefix for a given namespace URI.org.xml.sax.SAXExceptionCopyright © 2014 DuraSpace. All Rights Reserved.