public class ModelFinderImpl extends java.lang.Object implements ModelFinder
This implementation of ModelFinder
relies on the full in-memory model, and is convenient
for document generation.
Constructor and Description |
---|
ModelFinderImpl(UmlModel model)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
findAttributeValue(java.lang.String className,
java.lang.String attributeName)
Returns value of first attribute
attributeName of first class
className when found, null otherwise. |
java.lang.String |
findClassName(java.lang.String packageName,
java.lang.String className)
Returns the name of the first class
className withing the first package
packageName when found, null otherwise. |
java.io.File |
findDiagramFile(java.lang.String containerName,
java.lang.String diagramName)
Returns file containing the first
diagramName on the first container
containerName when found, null otherwise. |
TextDescription |
findDiagramNote(java.lang.String containerName,
java.lang.String diagramName)
Returns the note (description) of the first
diagramName on the first container
containerName when found, null otherwise. |
java.lang.String |
findIec61850NsName(java.lang.String className)
Returns the name space name for the IEC 61850 namespace class
className when
found, null otherwise. |
public ModelFinderImpl(UmlModel model)
public java.lang.String findAttributeValue(java.lang.String className, java.lang.String attributeName)
ModelFinder
attributeName
of first class
className
when found, null otherwise.findAttributeValue
in interface ModelFinder
public java.io.File findDiagramFile(java.lang.String containerName, java.lang.String diagramName)
ModelFinder
diagramName
on the first container
containerName
when found, null otherwise. Note that the diagram container could
be either package or class; if there is a diagram with the same name on a package and on a
class, the package diagram is returned.findDiagramFile
in interface ModelFinder
public TextDescription findDiagramNote(java.lang.String containerName, java.lang.String diagramName)
ModelFinder
diagramName
on the first container
containerName
when found, null otherwise. Note that the diagram container could
be either package or class; if there is a diagram with the same name on a package and on a
class, the package diagram is returned.findDiagramNote
in interface ModelFinder
public java.lang.String findClassName(java.lang.String packageName, java.lang.String className)
ModelFinder
className
withing the first package
packageName
when found, null otherwise.findClassName
in interface ModelFinder
public java.lang.String findIec61850NsName(java.lang.String className)
ModelFinder
className
when
found, null otherwise.findIec61850NsName
in interface ModelFinder
Copyright 2009-2016 Tatjana (Tanja) Kostic