public class PossibleValue
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
description |
java.lang.String |
value |
Constructor and Description |
---|
PossibleValue() |
PossibleValue(PossibleValue o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this PossibleValue.
|
static PossibleValue |
fromString(java.lang.String s)
String representation of this PossibleValue.
|
java.lang.String |
getDescription()
Description (may be used as a tooltip)
|
java.lang.String |
getValue()
Value
|
PossibleValue |
makeCopy()
Creates and returns a deep copy of this PossibleValue.
|
static PossibleValue |
readFrom(java.io.InputStream is)
Read this PossibleValue from an XML fragment.
|
void |
setDescription(java.lang.String description)
Description (may be used as a tooltip)
|
void |
setValue(java.lang.String value)
Value
|
java.lang.String |
toString()
String representation of this PossibleValue.
|
PossibleValue |
withDescription(java.lang.String description) |
PossibleValue |
withValue(java.lang.String value) |
void |
writeTo(java.io.OutputStream os)
Write this PossibleValue as an XML fragment
|
public PossibleValue()
public PossibleValue(PossibleValue o)
public void setValue(java.lang.String value)
public java.lang.String getValue()
public PossibleValue withValue(java.lang.String value)
public void setDescription(java.lang.String description)
public java.lang.String getDescription()
public PossibleValue withDescription(java.lang.String description)
public PossibleValue makeCopy()
public static PossibleValue readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
javax.xml.bind.JAXBException
java.io.IOException
public static PossibleValue fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class java.lang.Object
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.