|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.xmlui.wing.element.AbstractWingElement
org.dspace.app.xmlui.wing.element.Container
org.dspace.app.xmlui.wing.element.Instance
public class Instance
Instance represents multiple value instances of a field.
| Field Summary | |
|---|---|
static String |
E_INSTANCE
The name of the field instance element |
| Fields inherited from class org.dspace.app.xmlui.wing.element.Container |
|---|
contents |
| Fields inherited from class org.dspace.app.xmlui.wing.element.AbstractWingElement |
|---|
context |
| Constructor Summary | |
|---|---|
protected |
Instance(WingContext context)
Construct a new field value, when used in a multiple value context |
| Method Summary | |
|---|---|
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,
NamespaceSupport namespaces)
Translate this element and all contained elements into SAX events. |
| Methods inherited from class org.dspace.app.xmlui.wing.element.Container |
|---|
dispose |
| Methods inherited from class org.dspace.app.xmlui.wing.element.AbstractWingElement |
|---|
endElement, endElement, getWingContext, greater, lesser, require, require, requireFalse, requireTrue, restrict, sendCharacters, setWingContext, startElement, startElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String E_INSTANCE
| Constructor Detail |
|---|
protected Instance(WingContext context)
throws WingException
context - (Required) The context this element is contained in
WingException| Method Detail |
|---|
public Value setValue()
throws WingException
WingException
public void setValue(String characters)
throws WingException
characters - (May be null) Field value as a string
WingException
public void setValue(Message message)
throws WingException
message - (Required) A key into the i18n catalogue for translation into
the user's preferred language.
WingException
public void setValue(boolean checked)
throws WingException
checked - (Required) Whether the checkbox is checked or not.
WingException
public Value setAuthorityValue()
throws WingException
WingException
public Value setAuthorityValue(String characters,
String confidence)
throws WingException
characters - (May be null) Field value as a string
WingException
public void setOptionSelected(String returnValue)
throws WingException
returnValue - (Required) The return value of the option to be selected.
WingException
public void setOptionSelected(int returnValue)
throws WingException
returnValue - (Required) The return value of the option to be selected.
WingException
public Value setInterpretedValue()
throws WingException
WingException
public void setInterpretedValue(String characters)
throws WingException
characters - (May be null) Field value as a string
WingException
public void setInterpretedValue(Message message)
throws WingException
message - (Required) A key into the i18n catalogue for translation into
the user's preferred language.
WingException
public Value addOptionValue(String option)
throws WingException
option - (Required) The return value of the selected option.
WingException
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
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.
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||