Class Global
- java.lang.Object
-
- org.opennms.netmgt.alarmd.northbounder.drools.Global
-
- All Implemented Interfaces:
Serializable
public class Global extends Object implements Serializable
The Class Global.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Global()
Instantiates a new global.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
constructValue(org.springframework.context.ApplicationContext context)
Construct value.<T> T
convertStringTo(String value, Class<T> typeClass)
Convert string to.String
getName()
Gets the name.String
getRef()
Gets the reference.String
getType()
Gets the type.Class<?>
getTypeClass()
Gets the type class.String
getValue()
Gets the value.Object
getValueAsType(Class<?> typeClass)
Gets the value as type.void
setName(String name)
Sets the name.void
setRef(String ref)
Sets the reference.void
setType(String type)
Sets the type.void
setValue(String value)
Sets the value.
-
-
-
Method Detail
-
getName
public String getName()
Gets the name.- Returns:
- the name
-
getRef
public String getRef()
Gets the reference.- Returns:
- the reference
-
getType
public String getType()
Gets the type.- Returns:
- the type
-
getValue
public String getValue()
Gets the value.- Returns:
- the value
-
setName
public void setName(String name)
Sets the name.- Parameters:
name
- the new name
-
setRef
public void setRef(String ref)
Sets the reference.- Parameters:
ref
- the new reference
-
setType
public void setType(String type)
Sets the type.- Parameters:
type
- the new type
-
setValue
public void setValue(String value)
Sets the value.- Parameters:
value
- the new value
-
convertStringTo
public <T> T convertStringTo(String value, Class<T> typeClass)
Convert string to.- Type Parameters:
T
- the generic type- Parameters:
value
- the valuetypeClass
- the type class- Returns:
- the t
-
getTypeClass
public Class<?> getTypeClass()
Gets the type class.- Returns:
- the type class
-
getValueAsType
public Object getValueAsType(Class<?> typeClass)
Gets the value as type.- Parameters:
typeClass
- the type class- Returns:
- the value as type
-
constructValue
public Object constructValue(org.springframework.context.ApplicationContext context)
Construct value.- Parameters:
context
- the context- Returns:
- the object
-
-