org.eclipse.epsilon.emc.bibtex
Class BibtexModel

java.lang.Object
  extended by org.eclipse.epsilon.eol.models.Model
      extended by org.eclipse.epsilon.eol.models.CachedModel<Publication>
          extended by org.eclipse.epsilon.emc.bibtex.BibtexModel
All Implemented Interfaces:
IModel

public class BibtexModel
extends CachedModel<Publication>


Field Summary
static java.lang.String PROPERTY_SOURCE_FILE
           
 
Fields inherited from class org.eclipse.epsilon.eol.models.CachedModel
PROPERTY_CACHED
 
Fields inherited from class org.eclipse.epsilon.eol.models.Model
PROPERTY_ALIASES, PROPERTY_NAME, PROPERTY_READONLOAD, PROPERTY_STOREONDISPOSAL
 
Constructor Summary
BibtexModel()
           
 
Method Summary
 java.lang.Object getElementById(java.lang.String id)
           
 java.lang.String getElementId(java.lang.Object instance)
           
 java.lang.Object getEnumerationValue(java.lang.String enumeration, java.lang.String label)
           
 IPropertyGetter getPropertyGetter()
           
 IPropertySetter getPropertySetter()
           
 java.lang.String getTypeNameOf(java.lang.Object instance)
          Returns a string representing the type of the instance object.
 java.lang.Object getTypeOf(java.lang.Object instance)
           
 boolean hasType(java.lang.String type)
           
 boolean isInstantiable(java.lang.String type)
           
 boolean isModelElement(java.lang.Object instance)
          Used to test whether a Java object can be contained by this model.
 void load(StringProperties properties, java.lang.String basePath)
           
 boolean owns(java.lang.Object instance)
          Used to test whether an object is contained in this model.
 void setBibtex(java.lang.String bibtex)
           
 void setElementId(java.lang.Object instance, java.lang.String newId)
           
 boolean store()
           
 boolean store(java.lang.String location)
           
 
Methods inherited from class org.eclipse.epsilon.eol.models.CachedModel
allContents, clearCache, createInstance, deleteElement, dispose, getAllOfKind, getAllOfType, isCachingEnabled, load, setCachingEnabled
 
Methods inherited from class org.eclipse.epsilon.eol.models.Model
allInstances, createInstance, getAliases, getFullyQualifiedTypeNameOf, getName, getTransactionSupport, isOfKind, isOfType, isReadOnLoad, isStoredOnDisposal, knowsAboutProperty, setName, setReadOnLoad, setStoredOnDisposal
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_SOURCE_FILE

public static final java.lang.String PROPERTY_SOURCE_FILE
See Also:
Constant Field Values
Constructor Detail

BibtexModel

public BibtexModel()
Method Detail

setBibtex

public void setBibtex(java.lang.String bibtex)

load

public void load(StringProperties properties,
                 java.lang.String basePath)
          throws EolModelLoadingException
Specified by:
load in interface IModel
Overrides:
load in class CachedModel<Publication>
Throws:
EolModelLoadingException

owns

public boolean owns(java.lang.Object instance)
Description copied from interface: IModel
Used to test whether an object is contained in this model.

Parameters:
instance - the Java object to test.
Returns:
true if and only if instance is contained by this model.

hasType

public boolean hasType(java.lang.String type)

getPropertyGetter

public IPropertyGetter getPropertyGetter()
Specified by:
getPropertyGetter in interface IModel
Overrides:
getPropertyGetter in class Model

getPropertySetter

public IPropertySetter getPropertySetter()
Specified by:
getPropertySetter in interface IModel
Overrides:
getPropertySetter in class Model

store

public boolean store(java.lang.String location)

getEnumerationValue

public java.lang.Object getEnumerationValue(java.lang.String enumeration,
                                            java.lang.String label)
                                     throws EolEnumerationValueNotFoundException
Throws:
EolEnumerationValueNotFoundException

getTypeOf

public java.lang.Object getTypeOf(java.lang.Object instance)
Specified by:
getTypeOf in interface IModel
Overrides:
getTypeOf in class Model

getTypeNameOf

public java.lang.String getTypeNameOf(java.lang.Object instance)
Description copied from interface: IModel
Returns a string representing the type of the instance object. The value returned by this function can be passed to createInstance to instantiate another object of the same type as instance.

Parameters:
instance - The model object whose type is to be determined.
Returns:
the name of the type of the model object, instance.

getElementById

public java.lang.Object getElementById(java.lang.String id)

getElementId

public java.lang.String getElementId(java.lang.Object instance)

setElementId

public void setElementId(java.lang.Object instance,
                         java.lang.String newId)

isInstantiable

public boolean isInstantiable(java.lang.String type)

isModelElement

public boolean isModelElement(java.lang.Object instance)
Description copied from interface: IModel
Used to test whether a Java object can be contained by this model. For example, EMF models can contain instances of EObject, but not instances of just Object.

Specified by:
isModelElement in interface IModel
Overrides:
isModelElement in class Model
Parameters:
instance - the Java object to test.
Returns:
true if and only if instance can be contained by this model.

store

public boolean store()