public abstract class DmcTypeString extends DmcAttribute<String> implements Serializable
attrInfo, ID| Constructor and Description |
|---|
DmcTypeString()
Constructs a new String attribute.
|
DmcTypeString(DmcAttributeInfo ai) |
| Modifier and Type | Method and Description |
|---|---|
String |
cloneValue(String original)
This method must be overridden to clone whatever value is stored in this attribute.
|
String |
deserializeValue(DmcInputStreamIF dis)
Read a String.
|
void |
serializeValue(DmcOutputStreamIF dos,
String value)
Write a String.
|
String |
typeCheck(Object value)
Derived classes must overload this method to determine if the value passed
in conforms with their type criteria.
|
add, addModsMV, addModsSV, cloneIt, compareTo, contains, containsKey, del, deserializeIt, formatValue, formatValueAsCompactJSON, formatValueAsJSON, getAttributeInfo, getByKey, getID, getMV, getMVnth, getMVSize, getName, getNew, getSV, hasValue, modifierFormat, serializeIt, set, setAttributeInfo, setMVnth, toOIF, toOIF, valueChangedMV, valueChangedSVpublic DmcTypeString()
public DmcTypeString(DmcAttributeInfo ai)
public String typeCheck(Object value) throws DmcValueException
DmcAttributetypeCheck in class DmcAttribute<String>value - the value to be checkedDmcValueException - if the value is incorrectpublic String cloneValue(String original)
DmcAttributecloneValue in class DmcAttribute<String>original - the original valuepublic void serializeValue(DmcOutputStreamIF dos, String value) throws Exception
serializeValue in class DmcAttribute<String>dos - The output stream.value - The value to be serialized.Exceptionpublic String deserializeValue(DmcInputStreamIF dis) throws Exception
deserializeValue in class DmcAttribute<String>dis - the input stream.ExceptionCopyright © 2023. All rights reserved.