VMware GemFire Java API Reference
Class DeclarableType
- java.lang.Object
-
- org.apache.geode.cache.configuration.ClassNameType
-
- org.apache.geode.cache.configuration.DeclarableType
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
RegionAttributesType.EvictionAttributes.LruHeapPercentage
@Experimental public class DeclarableType extends ClassNameType implements java.io.Serializable
A "declarable" element specifies a Declarable object to be placed in a Region entry.Java class for declarable-type complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="declarable-type"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="class-name" type="{http://geode.apache.org/schema/cache}class-name-type"/> <element name="parameter" type="{http://geode.apache.org/schema/cache}parameter-type" maxOccurs="unbounded" minOccurs="0"/> </sequence> </restriction> </complexContent> </complexType>- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DeclarableTypeEMPTYprotected java.util.List<ParameterType>parameters-
Fields inherited from class org.apache.geode.cache.configuration.ClassNameType
className
-
-
Constructor Summary
Constructors Constructor Description DeclarableType()DeclarableType(java.lang.String className)DeclarableType(java.lang.String className, java.lang.String jsonProperties)DeclarableType(java.lang.String className, java.util.Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.List<ParameterType>getParameters()Gets the value of the parameter property.inthashCode()voidsetParameters(java.util.Properties properties)java.lang.StringtoString()-
Methods inherited from class org.apache.geode.cache.configuration.ClassNameType
getClassName, setClassName
-
-
-
-
Field Detail
-
parameters
protected java.util.List<ParameterType> parameters
-
EMPTY
public static final DeclarableType EMPTY
-
-
Constructor Detail
-
DeclarableType
public DeclarableType()
-
DeclarableType
public DeclarableType(java.lang.String className)
-
DeclarableType
public DeclarableType(java.lang.String className, java.lang.String jsonProperties)
-
DeclarableType
public DeclarableType(java.lang.String className, java.util.Properties properties)
-
-
Method Detail
-
getParameters
public java.util.List<ParameterType> getParameters()
Gets the value of the parameter property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the parameter property.For example, to add a new item, do as follows:
getParameters().add(newItem);
Objects of the following type(s) are allowed in the list
ParameterType- Returns:
ListofParameterTypes.
-
setParameters
public void setParameters(java.util.Properties properties)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classClassNameType
-
hashCode
public int hashCode()
- Overrides:
hashCodein classClassNameType
-
toString
public java.lang.String toString()
- Overrides:
toStringin classClassNameType
-
-