p3j.pppm
Class SymbolicProjectionModel

java.lang.Object
  extended by james.core.base.Entity
      extended by james.core.base.NamedEntity
          extended by james.core.model.Model
              extended by p3j.pppm.SymbolicProjectionModel
All Implemented Interfaces:
james.core.base.IEntity, james.core.base.INamedEntity, james.core.model.IModel, james.core.model.symbolic.ISymbolicModel<IProjectionModel>, james.core.observe.IObservable, Serializable, Comparable<james.core.base.INamedEntity>

public class SymbolicProjectionModel
extends james.core.model.Model
implements james.core.model.symbolic.ISymbolicModel<IProjectionModel>

Implementation of ISymbolicModel that wraps ProjectionModel. To be extended in the future.

Author:
Christina Bohk, Roland Ewald
See Also:
Serialized Form

Field Summary
 
Fields inherited from class james.core.model.Model
accessRestriction
 
Constructor Summary
SymbolicProjectionModel(ProjectionModel pModel)
          Instantiates a new symbolic projection model.
 
Method Summary
 IProjectionModel getAsDataStructure()
           
 james.core.model.symbolic.convert.IDocument<?> getAsDocument(Class<? extends james.core.model.symbolic.convert.IDocument<?>> targetFormat)
           
 String getSource()
           
 james.core.data.model.read.plugintype.IMIMEType getSourceMimeType()
           
 boolean isSourceAvailable()
           
 void removeSource()
           
 boolean setFromDataStructure(IProjectionModel model)
           
 boolean setFromDocument(james.core.model.symbolic.convert.IDocument<?> model)
           
 void setSource(String src, james.core.data.model.read.plugintype.IMIMEType mime)
           
 
Methods inherited from class james.core.model.Model
cleanUp, demandsResource, getParam, getParam, init, instantiate, setAccessRestriction, setParam
 
Methods inherited from class james.core.base.NamedEntity
compareTo, getCompleteInfoString, getName, setName, toString
 
Methods inherited from class james.core.base.Entity
changed, changed, getMediator, getSimpleId, isObserved, registerObserver, report, report, report, report, report, report, report, report, setMediator, unregister, unregisterObserver, unregisterObservers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface james.core.base.INamedEntity
compareTo, getName, setName
 
Methods inherited from interface james.core.base.IEntity
getCompleteInfoString, getSimpleId
 
Methods inherited from interface james.core.observe.IObservable
changed, getMediator, registerObserver, setMediator, unregisterObserver, unregisterObservers
 

Constructor Detail

SymbolicProjectionModel

public SymbolicProjectionModel(ProjectionModel pModel)
Instantiates a new symbolic projection model.

Parameters:
pModel - the actual projection model
Method Detail

getAsDataStructure

public IProjectionModel getAsDataStructure()
Specified by:
getAsDataStructure in interface james.core.model.symbolic.ISymbolicModel<IProjectionModel>

setFromDataStructure

public boolean setFromDataStructure(IProjectionModel model)
Specified by:
setFromDataStructure in interface james.core.model.symbolic.ISymbolicModel<IProjectionModel>

getAsDocument

public james.core.model.symbolic.convert.IDocument<?> getAsDocument(Class<? extends james.core.model.symbolic.convert.IDocument<?>> targetFormat)
Specified by:
getAsDocument in interface james.core.model.symbolic.ISymbolicModel<IProjectionModel>

setFromDocument

public boolean setFromDocument(james.core.model.symbolic.convert.IDocument<?> model)
Specified by:
setFromDocument in interface james.core.model.symbolic.ISymbolicModel<IProjectionModel>

removeSource

public void removeSource()
Specified by:
removeSource in interface james.core.model.symbolic.ISymbolicModel<IProjectionModel>

setSource

public void setSource(String src,
                      james.core.data.model.read.plugintype.IMIMEType mime)
Specified by:
setSource in interface james.core.model.symbolic.ISymbolicModel<IProjectionModel>

isSourceAvailable

public boolean isSourceAvailable()
Specified by:
isSourceAvailable in interface james.core.model.symbolic.ISymbolicModel<IProjectionModel>

getSource

public String getSource()
Specified by:
getSource in interface james.core.model.symbolic.ISymbolicModel<IProjectionModel>

getSourceMimeType

public james.core.data.model.read.plugintype.IMIMEType getSourceMimeType()
Specified by:
getSourceMimeType in interface james.core.model.symbolic.ISymbolicModel<IProjectionModel>


Copyright © 2012. All Rights Reserved.