Skip to content

Package io.github.qishr.cascara.common.property

Class Property

java.lang.Object
        io.github.qishr.cascara.common.property.Property

All Implemented Interfaces:
    TabularData

Direct Known Subtypes:
    BooleanProperty, IntegerProperty, NumberProperty, StringProperty, TrackableProperty


public class Property

Constructor Summary

Constructor Description
Property()
Property(String k)
Property(String k, T v)

Method Summary

Modifier and Type Method Description
public String getName()
public void setName(String k)
public PrimitiveType getPrimitiveType()
public void setPrimitiveType(PrimitiveType kind)
public T getValue()
public void setValue(T v)
public String asString()
public double asDouble()
public double asDouble(double defaultValue)
public int asInteger()
public long asLong()
public int asInteger(int defaultValue)
public long asLong(int defaultValue)
public boolean asBoolean()
public boolean asBoolean(boolean defaultValue)
public boolean isEmpty()
public Object[] getValues()
public Map<String, Object> getValuesMap()
public Object getValue(String key)

Method Details

getName

public String getName()


setName

public void setName(String k)


getPrimitiveType

public PrimitiveType getPrimitiveType()


setPrimitiveType

public void setPrimitiveType(PrimitiveType kind)


getValue

public T getValue()


setValue

public void setValue(T v)


asString

public String asString()


asDouble

public double asDouble()


asDouble

public double asDouble(double defaultValue)


asInteger

public int asInteger()


asLong

public long asLong()


asInteger

public int asInteger(int defaultValue)


asLong

public long asLong(int defaultValue)


asBoolean

public boolean asBoolean()


asBoolean

public boolean asBoolean(boolean defaultValue)


isEmpty

public boolean isEmpty()


getValues

public Object[] getValues()

Specified By:

TabularData


getValuesMap

public Map<String, Object> getValuesMap()

Specified By:

TabularData


getValue

public Object getValue(String key)

Specified By:

TabularData