public class Instance extends Container
| Modifier and Type | Field and Description |
|---|---|
static String |
E_INSTANCE
The name of the field instance element
|
context| Modifier | Constructor and Description |
|---|---|
protected |
Instance(WingContext context)
Construct a new field value, when used in a multiple value context
|
| Modifier and Type | Method and Description |
|---|---|
Value |
addOptionValue(String option)
Add an option value, there may be many of these.
|
Value |
setAuthorityValue()
Set the authority value of the field removing any previous authority values.
|
Value |
setAuthorityValue(String characters,
String confidence)
Set the authority value of the field removing any previous authority values.
|
void |
setCheckedValue(boolean checked,
String characters)
Set the checkbox (or radio) value of this field.
|
Value |
setInterpretedValue()
Set the interpreted value of the field removing any previous interpreted
values.
|
void |
setInterpretedValue(Message message)
Set the interpreted value of the field removing any previous interpreted
values.
|
void |
setInterpretedValue(String characters)
Set the interpreted value of the field removing any previous interpreted
values.
|
void |
setOptionSelected(int returnValue)
Set the given option as selected.
|
void |
setOptionSelected(String returnValue)
Set the given option as selected.
|
Value |
setValue()
Set the raw value of the field removing any previous raw values.
|
void |
setValue(boolean checked)
Set the raw value of the field removing any previous raw values.
|
void |
setValue(Message message)
Set the raw value of the field removing any previous raw values.
|
void |
setValue(String characters)
Set the raw value of the field removing any previous raw values.
|
void |
toSAX(ContentHandler contentHandler,
LexicalHandler lexicalHandler,
org.xml.sax.helpers.NamespaceSupport namespaces)
Translate this element and all contained elements into SAX events.
|
endElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElementpublic static final String E_INSTANCE
protected Instance(WingContext context) throws WingException
context - (Required) The context this element is contained in.WingException - passed through.public Value setValue() throws WingException
WingException - passed through.public void setValue(String characters) throws WingException
characters - (May be null) Field value as a stringWingException - passed through.public void setValue(Message message) throws WingException
message - (Required) A key into the i18n catalogue for translation into
the user's preferred language.WingException - passed through.public void setValue(boolean checked)
throws WingException
checked - (Required) Whether the checkbox is checked or not.WingException - passed through.public Value setAuthorityValue() throws WingException
WingException - passed through.public Value setAuthorityValue(String characters, String confidence) throws WingException
characters - (May be null) Field value as a stringconfidence - measure of confidence.WingException - passed through.public void setOptionSelected(String returnValue) throws WingException
returnValue - (Required) The return value of the option to be selected.WingException - passed through.public void setOptionSelected(int returnValue)
throws WingException
returnValue - (Required) The return value of the option to be selected.WingException - passed through.public Value setInterpretedValue() throws WingException
WingException - passed through.public void setInterpretedValue(String characters) throws WingException
characters - (May be null) Field value as a stringWingException - passed through.public void setInterpretedValue(Message message) throws WingException
message - (Required) A key into the i18n catalogue for translation into
the user's preferred language.WingException - passed through.public Value addOptionValue(String option) throws WingException
option - (Required) The return value of the selected option.WingException - passed through.public void setCheckedValue(boolean checked,
String characters)
throws WingException
checked - (Required) determine if the value is selected or not.characters - (may be null) The returned value for this field, if selected.WingException - passed through.public void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, org.xml.sax.helpers.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.SAXException - passed through.Copyright © 2016 DuraSpace. All rights reserved.