Class CLTypeList
- java.lang.Object
-
- com.casper.sdk.model.clvalue.cltype.AbstractCLType
-
- com.casper.sdk.model.clvalue.cltype.AbstractCLTypeWithChildren
-
- com.casper.sdk.model.clvalue.cltype.CLTypeList
-
public class CLTypeList extends AbstractCLTypeWithChildren
CLType forAbstractCLType.LIST- Since:
- 0.0.1
- See Also:
AbstractCLType
-
-
Constructor Summary
Constructors Constructor Description CLTypeList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)voiddeserializeChildTypes(dev.oak3.sbs4j.DeserializerBuffer deser)Updates the child types from the deserializer buffer.booleanequals(java.lang.Object o)protected java.lang.ObjectgetJsonValue()AbstractCLTypegetListType()java.lang.StringgetTypeName()Required getter for implementations of CLTypeinthashCode()booleanisDeserializable()Indicates if the CLType does not contain an 'Any', or other un-deserializable child type from bytes.voidserializeChildTypes(dev.oak3.sbs4j.SerializerBuffer ser)Writes the child types to the serialization buffer.protected voidsetJsonValue(AbstractCLType clType)voidsetListType(AbstractCLType listType)-
Methods inherited from class com.casper.sdk.model.clvalue.cltype.AbstractCLTypeWithChildren
deserializeChildType, getChildClTypeData, getChildTypeObjects, getChildTypes, loadCLTypes, serialize, setChildTypeObjects, setChildTypes
-
Methods inherited from class com.casper.sdk.model.clvalue.cltype.AbstractCLType
getClTypeData
-
-
-
-
Method Detail
-
getJsonValue
@ExcludeFromJacocoGeneratedReport protected java.lang.Object getJsonValue()
-
setJsonValue
@ExcludeFromJacocoGeneratedReport protected void setJsonValue(AbstractCLType clType)
-
getListType
public AbstractCLType getListType()
-
setListType
public void setListType(AbstractCLType listType)
-
isDeserializable
public boolean isDeserializable()
Description copied from class:AbstractCLTypeIndicates if the CLType does not contain an 'Any', or other un-deserializable child type from bytes. The reason for this is the 'Any' type does not provide a length for its bytes. This type information is obtained from the JSON metadata.- Overrides:
isDeserializablein classAbstractCLTypeWithChildren- Returns:
- true if can be serialized, i.e: a child, or child's child does not contain a deserializable value such as an 'Any' type.
-
serializeChildTypes
public void serializeChildTypes(dev.oak3.sbs4j.SerializerBuffer ser) throws NoSuchTypeExceptionDescription copied from class:AbstractCLTypeWithChildrenWrites the child types to the serialization buffer.- Specified by:
serializeChildTypesin classAbstractCLTypeWithChildren- Parameters:
ser- the serialization buffer- Throws:
NoSuchTypeException
-
deserializeChildTypes
public void deserializeChildTypes(dev.oak3.sbs4j.DeserializerBuffer deser) throws dev.oak3.sbs4j.exception.ValueDeserializationException, NoSuchTypeException, DynamicInstanceExceptionDescription copied from class:AbstractCLTypeWithChildrenUpdates the child types from the deserializer buffer.- Specified by:
deserializeChildTypesin classAbstractCLTypeWithChildren- Parameters:
deser- the deserializer buffer- Throws:
dev.oak3.sbs4j.exception.ValueDeserializationExceptionNoSuchTypeExceptionDynamicInstanceException
-
getTypeName
public java.lang.String getTypeName()
Description copied from class:AbstractCLTypeRequired getter for implementations of CLType- Specified by:
getTypeNamein classAbstractCLType- Returns:
- the CLType name
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAbstractCLTypeWithChildren
-
canEqual
protected boolean canEqual(java.lang.Object other)
- Overrides:
canEqualin classAbstractCLTypeWithChildren
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractCLTypeWithChildren
-
-