T
- Class of this element's "underlying" data.public abstract class DataElement<T> extends Object
SlideSet
tables.
All DataElement
types must
implement a zero-argument constructor that instantiates
the element with a default underlying value.
All DataElement
types should also be marked
with the @
DataElementMetadata
annotation type, although it is not currently used
for run-time recognition of DataElement
classes.Modifier and Type | Field and Description |
---|---|
private String |
mimeType |
private SlideSet |
owner |
protected T |
underlying |
Constructor and Description |
---|
DataElement(T underlying) |
Modifier and Type | Method and Description |
---|---|
String |
getMimeType()
Get the MIME type of this element
|
SlideSet |
getOwner()
Get the
SlideSet table which owns this element |
T |
getUnderlying()
Get this element's "underlying" value
|
abstract String |
getUnderlyingText()
Get a
String representation of this
element's "underlying" value |
void |
setMimeType(String mimeType)
Set the MIME type of this element
|
void |
setOwner(SlideSet owner)
Set the
SlideSet table which owns this element |
void |
setUnderlying(T underlying)
Set this element's "underlying" value
|
abstract void |
setUnderlyingText(String text)
Set this element's "underlying" value based on a
String |
protected T underlying
private String mimeType
private SlideSet owner
public DataElement(T underlying)
public final void setUnderlying(T underlying)
public final T getUnderlying()
public abstract void setUnderlyingText(String text) throws SlideSetException
String
SlideSetException
- If text
cannot
be converted to the appropriate underlying data type.public abstract String getUnderlyingText()
String
representation of this
element's "underlying" valuepublic final void setMimeType(String mimeType)
public final String getMimeType()
public final void setOwner(SlideSet owner)
SlideSet
table which owns this elementpublic final SlideSet getOwner()
SlideSet
table which owns this elementCopyright © 2023. All rights reserved.