Class Value
- java.lang.Object
-
- org.opennms.netmgt.config.translator.Value
-
- All Implemented Interfaces:
java.io.Serializable
public class Value extends java.lang.Object implements java.io.Serializable
An element representing a value to be used in a translation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Value()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValue(Value value)
boolean
equals(java.lang.Object obj)
java.util.Optional<java.lang.String>
getMatches()
java.util.Optional<java.lang.String>
getName()
java.lang.String
getResult()
java.lang.String
getType()
java.util.List<Value>
getValues()
int
hashCode()
boolean
removeValue(Value value)
void
setMatches(java.lang.String matches)
void
setName(java.lang.String name)
void
setResult(java.lang.String result)
void
setType(java.lang.String type)
void
setValue(java.util.List<Value> values)
-
-
-
Method Detail
-
addValue
public void addValue(Value value)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getMatches
public java.util.Optional<java.lang.String> getMatches()
-
getName
public java.util.Optional<java.lang.String> getName()
-
getResult
public java.lang.String getResult()
-
getType
public java.lang.String getType()
-
getValues
public java.util.List<Value> getValues()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
removeValue
public boolean removeValue(Value value)
-
setMatches
public void setMatches(java.lang.String matches)
-
setName
public void setName(java.lang.String name)
-
setResult
public void setResult(java.lang.String result)
-
setType
public void setType(java.lang.String type)
-
setValue
public void setValue(java.util.List<Value> values)
-
-