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.
Modifier and Type | Field and Description |
---|---|
private static org.apache.log4j.Logger |
_logger |
private UmlModel |
_model |
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.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. |
java.lang.String |
findQualifiedClassName(java.lang.String packageName,
java.lang.String className,
java.lang.String separator)
Returns the
packageName separator className of the first
class and package combination when found, null otherwise. |
private static final org.apache.log4j.Logger _logger
private final UmlModel _model
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 java.lang.String findQualifiedClassName(java.lang.String packageName, java.lang.String className, java.lang.String separator)
ModelFinder
packageName
separator
className
of the first
class and package combination when found, null otherwise.findQualifiedClassName
in interface ModelFinder
Copyright 2009-2015 Tatjana (Tanja) Kostic