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 ObjectconstructValue(org.springframework.context.ApplicationContext context)Construct value.<T> TconvertStringTo(String value, Class<T> typeClass)Convert string to.StringgetName()Gets the name.StringgetRef()Gets the reference.StringgetType()Gets the type.Class<?>getTypeClass()Gets the type class.StringgetValue()Gets the value.ObjectgetValueAsType(Class<?> typeClass)Gets the value as type.voidsetName(String name)Sets the name.voidsetRef(String ref)Sets the reference.voidsetType(String type)Sets the type.voidsetValue(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
 
 
 - 
 
 -