Class Global
- java.lang.Object
-
- org.opennms.netmgt.alarmd.northbounder.drools.Global
-
- All Implemented Interfaces:
java.io.Serializable
public class Global extends java.lang.Object implements java.io.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 java.lang.Object
constructValue(org.springframework.context.ApplicationContext context)
Construct value.<T> T
convertStringTo(java.lang.String value, java.lang.Class<T> typeClass)
Convert string to.java.lang.String
getName()
Gets the name.java.lang.String
getRef()
Gets the reference.java.lang.String
getType()
Gets the type.java.lang.Class<?>
getTypeClass()
Gets the type class.java.lang.String
getValue()
Gets the value.java.lang.Object
getValueAsType(java.lang.Class<?> typeClass)
Gets the value as type.void
setName(java.lang.String name)
Sets the name.void
setRef(java.lang.String ref)
Sets the reference.void
setType(java.lang.String type)
Sets the type.void
setValue(java.lang.String value)
Sets the value.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name.- Returns:
- the name
-
getRef
public java.lang.String getRef()
Gets the reference.- Returns:
- the reference
-
getType
public java.lang.String getType()
Gets the type.- Returns:
- the type
-
getValue
public java.lang.String getValue()
Gets the value.- Returns:
- the value
-
setName
public void setName(java.lang.String name)
Sets the name.- Parameters:
name
- the new name
-
setRef
public void setRef(java.lang.String ref)
Sets the reference.- Parameters:
ref
- the new reference
-
setType
public void setType(java.lang.String type)
Sets the type.- Parameters:
type
- the new type
-
setValue
public void setValue(java.lang.String value)
Sets the value.- Parameters:
value
- the new value
-
convertStringTo
public <T> T convertStringTo(java.lang.String value, java.lang.Class<T> typeClass)
Convert string to.- Type Parameters:
T
- the generic type- Parameters:
value
- the valuetypeClass
- the type class- Returns:
- the t
-
getTypeClass
public java.lang.Class<?> getTypeClass()
Gets the type class.- Returns:
- the type class
-
getValueAsType
public java.lang.Object getValueAsType(java.lang.Class<?> typeClass)
Gets the value as type.- Parameters:
typeClass
- the type class- Returns:
- the value as type
-
constructValue
public java.lang.Object constructValue(org.springframework.context.ApplicationContext context)
Construct value.- Parameters:
context
- the context- Returns:
- the object
-
-