Class StringUnionValueImpl
- java.lang.Object
-
- io.apicurio.datamodels.models.union.UnionValueImpl<T>
-
- io.apicurio.datamodels.models.union.PrimitiveUnionValueImpl<String>
-
- io.apicurio.datamodels.models.union.StringUnionValueImpl
-
- All Implemented Interfaces:
PrimitiveUnionValue<String>
,StringStringListUnion
,StringUnionValue
,Union
,UnionValue<String>
,Visitable
public class StringUnionValueImpl extends PrimitiveUnionValueImpl<String> implements StringUnionValue
-
-
Constructor Summary
Constructors Constructor Description StringUnionValueImpl()
StringUnionValueImpl(String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asString()
List<String>
asStringList()
boolean
isString()
boolean
isStringList()
-
Methods inherited from class io.apicurio.datamodels.models.union.UnionValueImpl
accept, getValue, isEntity, isEntityList, isEntityMap, isList, isMap, setValue, unionValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.apicurio.datamodels.models.union.Union
isEntity, isEntityList, isEntityMap, unionValue
-
Methods inherited from interface io.apicurio.datamodels.models.union.UnionValue
getValue, isList, isMap, setValue
-
-
-
-
Constructor Detail
-
StringUnionValueImpl
public StringUnionValueImpl()
-
StringUnionValueImpl
public StringUnionValueImpl(String value)
-
-
Method Detail
-
isString
public boolean isString()
- Specified by:
isString
in interfaceStringStringListUnion
-
asString
public String asString()
- Specified by:
asString
in interfaceStringStringListUnion
-
isStringList
public boolean isStringList()
- Specified by:
isStringList
in interfaceStringStringListUnion
-
asStringList
public List<String> asStringList()
- Specified by:
asStringList
in interfaceStringStringListUnion
-
-