public class Feature
extends java.lang.Object
implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Feature.Triggers |
Modifier and Type | Field and Description |
---|---|
java.lang.String |
annotation |
static java.lang.String |
DEFAULT_LEVEL |
java.lang.String |
display |
java.lang.String |
level |
java.lang.String |
trigger |
protected Feature.Triggers |
triggers |
Constructor and Description |
---|
Feature() |
Feature(Feature o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this Feature.
|
static Feature |
fromString(java.lang.String s)
String representation of this Feature.
|
java.lang.String |
getAnnotation()
the annotation set by the processor if the feature matches
|
java.lang.String |
getDisplay()
the display form of the annotation
(if it contains a "?", it will be replaced byt the matching value") |
java.lang.String |
getLevel()
the level of match
|
java.lang.String |
getTrigger()
trigger the rule (optional)
|
Feature.Triggers |
getTriggers() |
Feature |
makeCopy()
Creates and returns a deep copy of this Feature.
|
static Feature |
readFrom(java.io.InputStream is)
Read this Feature from an XML fragment.
|
void |
setAnnotation(java.lang.String annotation)
the annotation set by the processor if the feature matches
|
void |
setDisplay(java.lang.String display)
the display form of the annotation
(if it contains a "?", it will be replaced byt the matching value") |
void |
setLevel(java.lang.String level)
the level of match
|
void |
setTrigger(java.lang.String trigger)
trigger the rule (optional)
|
void |
setTriggers(Feature.Triggers __value) |
java.lang.String |
toString()
String representation of this Feature.
|
Feature |
withAnnotation(java.lang.String annotation) |
Feature |
withDisplay(java.lang.String display) |
Feature |
withLevel(java.lang.String level) |
Feature |
withTrigger(java.lang.String trigger) |
Feature |
withTriggers(java.util.Collection<exa.bee.StringValue> __values) |
Feature |
withTriggers(Feature.Triggers __value) |
Feature |
withTriggers(exa.bee.StringValue... __values) |
void |
writeTo(java.io.OutputStream os)
Write this Feature as an XML fragment
|
public java.lang.String trigger
protected Feature.Triggers triggers
public java.lang.String annotation
public java.lang.String display
public java.lang.String level
public static final java.lang.String DEFAULT_LEVEL
public Feature()
public Feature(Feature o)
public void setTrigger(java.lang.String trigger)
public java.lang.String getTrigger()
public Feature withTrigger(java.lang.String trigger)
public Feature.Triggers getTriggers()
public void setTriggers(Feature.Triggers __value)
public Feature withTriggers(exa.bee.StringValue... __values)
public Feature withTriggers(java.util.Collection<exa.bee.StringValue> __values)
public Feature withTriggers(Feature.Triggers __value)
public void setAnnotation(java.lang.String annotation)
public java.lang.String getAnnotation()
public Feature withAnnotation(java.lang.String annotation)
public void setDisplay(java.lang.String display)
public java.lang.String getDisplay()
public Feature withDisplay(java.lang.String display)
public void setLevel(java.lang.String level)
public java.lang.String getLevel()
public Feature withLevel(java.lang.String level)
public Feature makeCopy()
public static Feature 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 Feature 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.