public class Value extends RichTextContainer
| Modifier and Type | Field and Description |
|---|---|
static String |
A_CHECKED
The name of the checked attribute
|
static String |
A_CONFIDENCE
The name of the confidence attribute
|
static String |
A_OPTION
The name of the option value attribute
|
static String |
A_TYPE
The name of the value type attribute
|
static String |
E_VALUE
The name of the value element
|
static String |
TYPE_AUTHORITY
value of the metadata authority code associated with a raw value
|
static String |
TYPE_INTERPRETED |
static String |
TYPE_OPTION |
static String |
TYPE_RAW
The possible value types
|
static String[] |
TYPES
All the possible value types collected into one array.
|
context| Modifier | Constructor and Description |
|---|---|
protected |
Value(WingContext context,
String type)
Construct a new field value, when used in a multiple value context
|
protected |
Value(WingContext context,
String type,
boolean checked)
Construct a new field value, when used in a multiple value context
|
protected |
Value(WingContext context,
String type,
String optionOrConfidence)
Construct a new field value, when used in a multiple value context
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getType() |
void |
toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler,
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 String E_VALUE
public static final String A_TYPE
public static final String A_OPTION
public static final String A_CHECKED
public static final String A_CONFIDENCE
public static final String TYPE_RAW
public static final String TYPE_INTERPRETED
public static final String TYPE_OPTION
public static final String TYPE_AUTHORITY
public static final String[] TYPES
protected Value(WingContext context, 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, String type, 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, 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 String getType()
public void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, NamespaceSupport namespaces) throws 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.SAXExceptionCopyright © 2013 DuraSpace. All Rights Reserved.