public class StringFeature extends ValuedFeature implements com.exalead.util.Checkable, java.io.Serializable
ValuedFeature.Units
Feature.Triggers
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_LANG |
static int |
DEFAULT_MAX_VALUE_SIZE |
java.lang.String |
lang |
int |
maxValueSize |
java.lang.String |
value |
unit, units
annotation, DEFAULT_LEVEL, display, level, trigger, triggers
Constructor and Description |
---|
StringFeature() |
StringFeature(StringFeature o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this StringFeature.
|
static StringFeature |
fromString(java.lang.String s)
String representation of this StringFeature.
|
java.lang.String |
getLang() |
int |
getMaxValueSize()
the maximum number of token composing the value
|
java.lang.String |
getValue()
the value to extract can be mutlivaluated separating values with '|'
|
StringFeature |
makeCopy()
Creates and returns a deep copy of this StringFeature.
|
static StringFeature |
readFrom(java.io.InputStream is)
Read this StringFeature from an XML fragment.
|
void |
setLang(java.lang.String lang) |
void |
setMaxValueSize(int maxValueSize)
the maximum number of token composing the value
|
void |
setValue(java.lang.String value)
the value to extract can be mutlivaluated separating values with '|'
|
java.lang.String |
toString()
String representation of this StringFeature.
|
StringFeature |
withAnnotation(java.lang.String annotation) |
StringFeature |
withDisplay(java.lang.String display) |
StringFeature |
withLang(java.lang.String lang) |
StringFeature |
withLevel(java.lang.String level) |
StringFeature |
withMaxValueSize(int maxValueSize) |
StringFeature |
withMaxValueSize(java.lang.Integer maxValueSize) |
StringFeature |
withTrigger(java.lang.String trigger) |
StringFeature |
withTriggers(java.util.Collection<exa.bee.StringValue> __values) |
StringFeature |
withTriggers(exa.bee.StringValue... __values) |
StringFeature |
withUnit(java.lang.String unit) |
StringFeature |
withUnits(java.util.Collection<exa.bee.StringValue> __values) |
StringFeature |
withUnits(exa.bee.StringValue... __values) |
StringFeature |
withValue(java.lang.String value) |
void |
writeTo(java.io.OutputStream os)
Write this StringFeature as an XML fragment
|
getUnit, getUnits, setUnit, setUnits, withUnits
getAnnotation, getDisplay, getLevel, getTrigger, getTriggers, setAnnotation, setDisplay, setLevel, setTrigger, setTriggers, withTriggers
public java.lang.String value
public int maxValueSize
public static final int DEFAULT_MAX_VALUE_SIZE
public java.lang.String lang
public static final java.lang.String DEFAULT_LANG
public StringFeature()
public StringFeature(StringFeature o)
public StringFeature withUnit(java.lang.String unit)
withUnit
in class ValuedFeature
public StringFeature withUnits(exa.bee.StringValue... __values)
withUnits
in class ValuedFeature
public StringFeature withUnits(java.util.Collection<exa.bee.StringValue> __values)
withUnits
in class ValuedFeature
public StringFeature withTrigger(java.lang.String trigger)
withTrigger
in class ValuedFeature
public StringFeature withTriggers(exa.bee.StringValue... __values)
withTriggers
in class ValuedFeature
public StringFeature withTriggers(java.util.Collection<exa.bee.StringValue> __values)
withTriggers
in class ValuedFeature
public StringFeature withAnnotation(java.lang.String annotation)
withAnnotation
in class ValuedFeature
public StringFeature withDisplay(java.lang.String display)
withDisplay
in class ValuedFeature
public StringFeature withLevel(java.lang.String level)
withLevel
in class ValuedFeature
public void setValue(java.lang.String value)
public java.lang.String getValue()
public StringFeature withValue(java.lang.String value)
public void setMaxValueSize(int maxValueSize)
public int getMaxValueSize()
public StringFeature withMaxValueSize(int maxValueSize)
public StringFeature withMaxValueSize(java.lang.Integer maxValueSize)
public void setLang(java.lang.String lang)
public java.lang.String getLang()
public StringFeature withLang(java.lang.String lang)
public StringFeature makeCopy()
makeCopy
in class ValuedFeature
public static StringFeature 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
writeTo
in class ValuedFeature
javax.xml.bind.JAXBException
java.io.IOException
public static StringFeature 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 ValuedFeature
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class ValuedFeature
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.