Package org.openmuc.jdlms.datatypes
Class CompactArray.TypeDesc
- java.lang.Object
-
- org.openmuc.jdlms.datatypes.CompactArray.TypeDesc
-
- Enclosing class:
- CompactArray
public static class CompactArray.TypeDesc extends java.lang.Object
The type description of a COSEM Compact Array.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompactArray.TypeDesc.Type
The types of a type description.
-
Constructor Summary
Constructors Constructor Description TypeDesc(java.lang.Object value, CompactArray.TypeDesc.Type type)
TypeDesc(CompactArray.TypeDesc.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompactArray.TypeDesc.Type
getType()
<T> T
getValue()
Get the value of the compact array.
-
-
-
Constructor Detail
-
TypeDesc
public TypeDesc(java.lang.Object value, CompactArray.TypeDesc.Type type)
-
TypeDesc
public TypeDesc(CompactArray.TypeDesc.Type type)
-
-
Method Detail
-
getValue
public <T> T getValue()
Get the value of the compact array.The value is null if its not of type
CompactArray.TypeDesc.Type.ARRAY
orCompactArray.TypeDesc.Type.STRUCTURE
.- Type Parameters:
T
- eitherCompactArray.TypeDesc.Type.ARRAY
orCompactArray.TypeDesc.Type.STRUCTURE
- Returns:
- the value of the compact array.
-
getType
public CompactArray.TypeDesc.Type getType()
-
-