public abstract class ValuedFeature extends Feature implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ValuedFeature.Units |
Feature.Triggers
Modifier and Type | Field and Description |
---|---|
java.lang.String |
unit |
protected ValuedFeature.Units |
units |
annotation, DEFAULT_LEVEL, display, level, trigger, triggers
Constructor and Description |
---|
ValuedFeature() |
ValuedFeature(ValuedFeature o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this ValuedFeature.
|
static ValuedFeature |
fromString(java.lang.String s)
String representation of this ValuedFeature.
|
java.lang.String |
getUnit()
the optional unit that suffix the value
|
ValuedFeature.Units |
getUnits() |
ValuedFeature |
makeCopy()
Creates and returns a deep copy of this Feature.
|
static ValuedFeature |
readFrom(java.io.InputStream is)
Read this ValuedFeature from an XML fragment.
|
void |
setUnit(java.lang.String unit)
the optional unit that suffix the value
|
void |
setUnits(ValuedFeature.Units __value) |
java.lang.String |
toString()
String representation of this ValuedFeature.
|
ValuedFeature |
withAnnotation(java.lang.String annotation) |
ValuedFeature |
withDisplay(java.lang.String display) |
ValuedFeature |
withLevel(java.lang.String level) |
ValuedFeature |
withTrigger(java.lang.String trigger) |
ValuedFeature |
withTriggers(java.util.Collection<exa.bee.StringValue> __values) |
ValuedFeature |
withTriggers(exa.bee.StringValue... __values) |
ValuedFeature |
withUnit(java.lang.String unit) |
ValuedFeature |
withUnits(java.util.Collection<exa.bee.StringValue> __values) |
ValuedFeature |
withUnits(exa.bee.StringValue... __values) |
ValuedFeature |
withUnits(ValuedFeature.Units __value) |
void |
writeTo(java.io.OutputStream os)
Write this Feature as an XML fragment
|
getAnnotation, getDisplay, getLevel, getTrigger, getTriggers, setAnnotation, setDisplay, setLevel, setTrigger, setTriggers, withTriggers
public java.lang.String unit
protected ValuedFeature.Units units
public ValuedFeature()
public ValuedFeature(ValuedFeature o)
public ValuedFeature withTrigger(java.lang.String trigger)
withTrigger
in class Feature
public ValuedFeature withTriggers(exa.bee.StringValue... __values)
withTriggers
in class Feature
public ValuedFeature withTriggers(java.util.Collection<exa.bee.StringValue> __values)
withTriggers
in class Feature
public ValuedFeature withAnnotation(java.lang.String annotation)
withAnnotation
in class Feature
public ValuedFeature withDisplay(java.lang.String display)
withDisplay
in class Feature
public ValuedFeature withLevel(java.lang.String level)
public void setUnit(java.lang.String unit)
public java.lang.String getUnit()
public ValuedFeature withUnit(java.lang.String unit)
public ValuedFeature.Units getUnits()
public void setUnits(ValuedFeature.Units __value)
public ValuedFeature withUnits(exa.bee.StringValue... __values)
public ValuedFeature withUnits(java.util.Collection<exa.bee.StringValue> __values)
public ValuedFeature withUnits(ValuedFeature.Units __value)
public ValuedFeature makeCopy()
Feature
public static ValuedFeature 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
Feature
public static ValuedFeature 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()
Copyright © 2013 Dassault Systèmes, All Rights Reserved.