org.modeldriven.fuml.repository.model
Class InMemoryRepository
java.lang.Object
org.modeldriven.fuml.repository.model.InMemoryMapping
org.modeldriven.fuml.repository.model.InMemoryRepository
- All Implemented Interfaces:
- Repository, RepositoryMapping
public class InMemoryRepository
- extends InMemoryMapping
- implements Repository
| Methods inherited from class org.modeldriven.fuml.repository.model.InMemoryMapping |
findElementById, findElementByName, findElementByQualifiedName, getClassifierByName, getClassifierByQualifiedName, getElementById, getElementByName, getElementByQualifiedName, getElementCount, getElementNames, getPackageByQualifiedName, mapAssociation, mapClass, mapClassifier, mapDataType, mapElementById, mapElementByName, mapEnumeration, mapEnumerationExternal, mapEnumerationLiteral, mapPackage, mapPackageMerge, mapPrimitiveType, mapProperty, mapStereotype, mergeClass, mergePackage, mergeProperties |
| Methods inherited from interface org.modeldriven.fuml.repository.Repository |
findElementById, findElementByName, findElementByQualifiedName, getClassifierByName, getClassifierByQualifiedName, getElementById, getElementByName, getElementByQualifiedName, getElementCount, getElementNames, getPackageByQualifiedName |
getInstance
public static InMemoryRepository getInstance()
throws RepositorylException
- Throws:
RepositorylException
loadClass
public void loadClass(Class_ clss)
- Collects attributes and operations for the given class and
maps it by artifact(file) namespace URI qualified
names.
- Specified by:
loadClass in interface Repository
- Parameters:
clss - the classclassName - the class name
getMapping
public RepositoryMapping getMapping()
- Specified by:
getMapping in interface Repository
getDefaultUMLNamespaceURI
public String getDefaultUMLNamespaceURI()
- Specified by:
getDefaultUMLNamespaceURI in interface Repository
getClassifier
public Classifier getClassifier(String name)
- Specified by:
getClassifier in interface Repository
findClassifier
public Classifier findClassifier(String name)
- Specified by:
findClassifier in interface Repository
getAllClassifiers
public Classifier[] getAllClassifiers()
getExtensions
public List<Extension> getExtensions(Element element)
- Specified by:
getExtensions in interface Repository
getStereotypes
public List<Stereotype> getStereotypes(Element element)
- Specified by:
getStereotypes in interface Repository
getStereotypes
public List<Stereotype> getStereotypes(Class<?> clss)
- Specified by:
getStereotypes in interface Repository
getAllStereotypes
public List<Stereotype> getAllStereotypes()
- Specified by:
getAllStereotypes in interface Repository
getJavaPackageNameForClass
public String getJavaPackageNameForClass(Classifier classifier)
- Specified by:
getJavaPackageNameForClass in interface Repository
findJavaPackageNamePackageForClass
public String findJavaPackageNamePackageForClass(Classifier classifier)
- Specified by:
findJavaPackageNamePackageForClass in interface Repository
isIgnoredClassifier
public boolean isIgnoredClassifier(String classifierName)
isIgnoredClassifier
public boolean isIgnoredClassifier(Classifier classifier)
- Specified by:
isIgnoredClassifier in interface Repository
isIgnoredPackage
public boolean isIgnoredPackage(String packageName)
main
public static void main(String[] args)
Copyright © 2012. All Rights Reserved.