Class SimpleType<T>
- java.lang.Object
-
- com.lyncode.xoai.dataprovider.xml.xoaiconfig.parameters.ParameterValue<T>
-
- com.lyncode.xoai.dataprovider.xml.xoaiconfig.parameters.SimpleType<T>
-
- All Implemented Interfaces:
XMLWritable
- Direct Known Subclasses:
BooleanValue,DoubleValue,FloatValue,IntValue,StringValue
public abstract class SimpleType<T> extends ParameterValue<T>
-
-
Constructor Summary
Constructors Constructor Description SimpleType()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BooleanasBoolean()DoubleasDouble()FloatasFloat()intasInteger()StringasString()TgetValue()protected abstract StringgetXmlName()booleanis(Class<?> clazz)SimpleTypewithValue(T value)voidwrite(XmlOutputContext writer)-
Methods inherited from class com.lyncode.xoai.dataprovider.xml.xoaiconfig.parameters.ParameterValue
asParameterList, asParameterMap, asSimpleType, getName, hasName, withName
-
-
-
-
Method Detail
-
getValue
public T getValue()
-
withValue
public SimpleType withValue(T value)
-
is
public boolean is(Class<?> clazz)
-
write
public void write(XmlOutputContext writer) throws WritingXmlException
- Throws:
WritingXmlException
-
asInteger
public int asInteger()
-
asString
public String asString()
-
asDouble
public Double asDouble()
-
asFloat
public Float asFloat()
-
asBoolean
public Boolean asBoolean()
-
getXmlName
protected abstract String getXmlName()
-
-