Class PlaceholderValue.PlaceholderUdtValue
- java.lang.Object
-
- de.aristaflow.adept2.model.datamanagement.PlaceholderValue.AbstractPlaceholderValue
-
- de.aristaflow.adept2.model.datamanagement.PlaceholderValue.PlaceholderUdtValue
-
- All Implemented Interfaces:
PlaceholderValue,UDTValue,TypedCloneable<PlaceholderValue.PlaceholderUdtValue>,Closeable,Serializable,AutoCloseable,Cloneable
- Enclosing interface:
- PlaceholderValue
public static final class PlaceholderValue.PlaceholderUdtValue extends PlaceholderValue.AbstractPlaceholderValue implements UDTValue, TypedCloneable<PlaceholderValue.PlaceholderUdtValue>
This class implements thePlaceholderValuefor a value ofProcessConstants.AdeptDataType.USERDEFINEDtype.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.aristaflow.adept2.model.datamanagement.PlaceholderValue
PlaceholderValue.AbstractPlaceholderValue, PlaceholderValue.PlaceholderCharSequence, PlaceholderValue.PlaceholderUdtValue
-
-
Field Summary
-
Fields inherited from interface de.aristaflow.adept2.model.datamanagement.PlaceholderValue
STRING_VALUE_PLACEHOLDER, UDT_NAME, UDT_VALUE_PLACEHOLDER
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlaceholderValue.PlaceholderUdtValueclone()Clones thisUDTValuein case it isCloneable, otherwise aCloneNotSupportedExceptionwill be thrown (which is what this default implementation does).voidclose()byte[]getBytes()Gets the value as a byte array of this user-defined data type.InputStreamgetInputStream()Gets the value as anInputStreamof this user-defined data type.LonggetSize()Gets the size of this UDT value if it is known.StringgetUserDefinedType()Gets the name (a string) of the user-defined type of this value.byte[]getValueAsArray()Gets the value as a byte array of this user-defined data type.InputStreamgetValueAsStream()Gets the value as anInputStreamof this user-defined data type.-
Methods inherited from class de.aristaflow.adept2.model.datamanagement.PlaceholderValue.AbstractPlaceholderValue
equals, getDataType, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.aristaflow.adept2.model.datamanagement.UDTValue
getContentString, getSize, isEmpty
-
-
-
-
Method Detail
-
getUserDefinedType
public String getUserDefinedType()
Description copied from interface:UDTValueGets the name (a string) of the user-defined type of this value.- Specified by:
getUserDefinedTypein interfaceUDTValue- Returns:
- The name of the user-defined data type of this value.
-
getValueAsStream
public InputStream getValueAsStream()
Description copied from interface:UDTValueGets the value as anInputStreamof this user-defined data type.
You have to close the stream after usage.- Specified by:
getValueAsStreamin interfaceUDTValue- Returns:
- The value of a (this) user-defined data type as an
InputStream. The caller is responsible for closing.
-
getInputStream
public InputStream getInputStream()
Description copied from interface:UDTValueGets the value as anInputStreamof this user-defined data type.
You have to close the stream after usage. Usually you should notUDTValue.close()thisUDTValuebefore all created input streams have been consumed. Implementations may deviate so that closing theUDTValuedoes not affect the created input streams.- Specified by:
getInputStreamin interfaceUDTValue- Returns:
- The value of a (this) user-defined data type as an
InputStream. The caller is responsible for closing.
-
getValueAsArray
public byte[] getValueAsArray()
Description copied from interface:UDTValueGets the value as a byte array of this user-defined data type.- Specified by:
getValueAsArrayin interfaceUDTValue- Returns:
- The value of a (this) user-defined data type as an array of bytes.
-
getSize
public Long getSize()
Description copied from interface:UDTValueGets the size of this UDT value if it is known. For instance, if the content stems from a stream and the stream is not read yet, the size cannot be determined andnullwill be returned.
-
getBytes
public byte[] getBytes()
Description copied from interface:UDTValueGets the value as a byte array of this user-defined data type.
-
close
public void close()
-
clone
public PlaceholderValue.PlaceholderUdtValue clone()
Description copied from interface:UDTValueClones thisUDTValuein case it isCloneable, otherwise aCloneNotSupportedExceptionwill be thrown (which is what this default implementation does). Subclasses should provide a corresponding implementation and also extendCloneable. Those which do not, should forward to this default implementation.- Specified by:
clonein interfaceTypedCloneable<PlaceholderValue.PlaceholderUdtValue>- Specified by:
clonein interfaceUDTValue- Overrides:
clonein classObject- Returns:
- A clone of this
UDTValueinstance.
-
-