public abstract class SwiftValueBlock extends SwiftBlock implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBlockValue()
This method should be overwritten by subclasses, calling
this method will throw a
java.lang.UnsupportedOperationException |
java.lang.String |
getValue()
This method should be overwritten by subclasses, calling
this method will throw a
java.lang.UnsupportedOperationException |
boolean |
isEmpty()
Tells if the block contains at least one field.
|
void |
setBlockValue(java.lang.String value)
This method should be overwritten by subclasses, calling
this method will throw a
java.lang.UnsupportedOperationException |
void |
setValue(java.lang.String value)
This method should be overwritten by subclasses and proper
parsing be done to set specific values of the block, calling
this method will throw a
java.lang.UnsupportedOperationException |
int |
size()
Tells the block's string value size (in chars).
NOTICE this does not return the actual number of fields set because value blocks are mostly fixed length. |
equals, getBlockType, getId, getInput, getName, getNumber, getOutput, getUnparsedTexts, getUnparsedTextsSize, hashCode, isTagBlock, setBlockType, setId, setInput, setOutput, setUnparsedTexts, toString, unparsedTextAddText, unparsedTextAddText, unparsedTextGetAsMessage, unparsedTextGetText, unparsedTextIsMessage
public java.lang.String getBlockValue()
java.lang.UnsupportedOperationException
public java.lang.String getValue()
java.lang.UnsupportedOperationException
public void setValue(java.lang.String value)
java.lang.UnsupportedOperationException
value
- the blocks value as a single stringpublic void setBlockValue(java.lang.String value)
java.lang.UnsupportedOperationException
value
- unusedpublic boolean isEmpty()
java.lang.UnsupportedOperationException
true
if getValue returns a non null objectpublic int size()
java.lang.UnsupportedOperationException