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 StringasString()List<String>asStringList()booleanisString()booleanisStringList()-
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:
isStringin interfaceStringStringListUnion
-
asString
public String asString()
- Specified by:
asStringin interfaceStringStringListUnion
-
isStringList
public boolean isStringList()
- Specified by:
isStringListin interfaceStringStringListUnion
-
asStringList
public List<String> asStringList()
- Specified by:
asStringListin interfaceStringStringListUnion
-
-