public abstract class DmcTypeDate extends DmcAttribute<Date> implements Serializable
attrInfo, ID| Constructor and Description |
|---|
DmcTypeDate()
Constructs a new Long attribute.
|
DmcTypeDate(DmcAttributeInfo ai) |
| Modifier and Type | Method and Description |
|---|---|
Date |
cloneValue(Date original)
This method must be overridden to clone whatever value is stored in this attribute.
|
Date |
deserializeValue(DmcInputStreamIF dis)
Read a Boolean.
|
protected String |
formatValue(Date value)
This method is called in toOIF() to format an attribute value.
|
void |
serializeValue(DmcOutputStreamIF dos,
Date value)
Write a Boolean.
|
Date |
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, formatValueAsCompactJSON, formatValueAsJSON, getAttributeInfo, getByKey, getID, getMV, getMVnth, getMVSize, getName, getNew, getSV, hasValue, modifierFormat, serializeIt, set, setAttributeInfo, setMVnth, toOIF, toOIF, valueChangedMV, valueChangedSVpublic DmcTypeDate()
public DmcTypeDate(DmcAttributeInfo ai)
public Date typeCheck(Object value) throws DmcValueException
DmcAttributetypeCheck in class DmcAttribute<Date>value - the value to be checkedDmcValueException - if the value is incorrectpublic Date cloneValue(Date original)
DmcAttributecloneValue in class DmcAttribute<Date>original - the original valueprotected String formatValue(Date value)
DmcAttributeformatValue in class DmcAttribute<Date>public void serializeValue(DmcOutputStreamIF dos, Date value) throws Exception
serializeValue in class DmcAttribute<Date>dos - The output stream.value - The value to be serialized.Exceptionpublic Date deserializeValue(DmcInputStreamIF dis) throws Exception
deserializeValue in class DmcAttribute<Date>dis - the input stream.ExceptionCopyright © 2023. All rights reserved.