|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEveDataModel
Interface for access to the data model. The methods in this interface are used to instantiate new top-level data model elements and apply visitors to arbitrary sub-trees of the data model tree.
Method Summary | |
---|---|
void |
addObserver(IDataObserver observer)
Add an observer to be invoked during any visitor traversal. |
void |
apply(IDataVisitor v,
CachedData d)
Apply the specified visitor to cached data starting at the specified node. |
java.util.Date |
convertEpochToDate(long epochTime)
Convert epochTime to a Date. |
java.lang.String |
formatDate(java.util.Date asDate)
Format a date in a human-readable form. |
java.lang.String |
formatDate(long epochTime)
Format a date in a human-readable form. |
IModelFactory |
getModelFactory()
Get the model factory used to instantiate all model objects. |
void |
removeAllObservers()
Remove all registered observers. |
boolean |
removeObserver(IDataObserver observer)
Remove the named observer from future traversals. |
void |
setModelFactory(IModelFactory newFactory)
Change the model factory to be used to instantiate all future model objects. |
Method Detail |
---|
IModelFactory getModelFactory()
void setModelFactory(IModelFactory newFactory)
newFactory
- an instance of IModelFactory to replace the current model
factory.void apply(IDataVisitor v, CachedData d) throws DPSException
v
- the visitor to apply to each node.d
- the root where the traversal will start.
DPSException
- if an error occurs during the traversal.void addObserver(IDataObserver observer)
observer
- the observer to invoke during any traversal.boolean removeObserver(IDataObserver observer)
observer
- the observer to remove.
void removeAllObservers()
java.util.Date convertEpochToDate(long epochTime)
epochTime
- the epoch time (milliseconds since January 1, 1970) to
convert.
java.lang.String formatDate(java.util.Date asDate)
asDate
- the date to format.
java.lang.String formatDate(long epochTime)
epochTime
- epoch time (milliseconds since January 1, 1970) to format.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |