public class NewsData extends Data
Modifier and Type | Class and Description |
---|---|
static class |
NewsData.Instantiator |
Modifier and Type | Field and Description |
---|---|
static String |
_dataType |
static String |
_IDPrefix |
DEFAULT_DATE
Constructor and Description |
---|
NewsData(News news)
The constructor.
|
NewsData(String gid,
DataID id,
Calendar lastUpdate,
DataAttributes attributes)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
static String |
getDataType()
Get the data type string.
|
News |
getNews()
Get the Node
|
String |
getType() |
getAttributes, getGridId, getId, getLastUpdate, setAttributes, setGridId, setId, setLastUpdate
public static final String _IDPrefix
public static final String _dataType
public NewsData(News news) throws DataConvertException
news
- DataConvertException
public NewsData(String gid, DataID id, Calendar lastUpdate, DataAttributes attributes)
gid
- Grid IDid
- Data IDlastUpdate
- Updated datetimeattributes
- Attributepublic News getNews() throws DataConvertException
ParseException
DataConvertException
public static String getDataType()