Class ComponentAccess
- java.lang.Object
-
- com.hello2morrow.sonargraph.core.api.model.ComponentAccess
-
- All Implemented Interfaces:
IComponentAccess
public class ComponentAccess extends java.lang.Object implements IComponentAccess
Class that encapsulates access to components, which are language specific. In Java and C# a component is a source file, in C/C++ a component is a combination of source and header files.
-
-
Constructor Summary
Constructors Constructor Description ComponentAccess(com.hello2morrow.sonargraph.core.model.path.IComponent component, ElementAccess.IAccessFactory factory)
Internal constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementAccess<?>
getElement()
Returns the language specific component elementjava.lang.String
getFilterName()
Gets the filter name for this component (usually the identifying path of the component)boolean
isExcluded()
Is this component excluded?
-
-
-
Constructor Detail
-
ComponentAccess
public ComponentAccess(com.hello2morrow.sonargraph.core.model.path.IComponent component, ElementAccess.IAccessFactory factory)
Internal constructor- Parameters:
component
-
-
-
Method Detail
-
getFilterName
public java.lang.String getFilterName()
Gets the filter name for this component (usually the identifying path of the component)- Specified by:
getFilterName
in interfaceIComponentAccess
- Returns:
- The filter name
-
isExcluded
public boolean isExcluded()
Is this component excluded?- Specified by:
isExcluded
in interfaceIComponentAccess
- Returns:
- true if excluded
-
getElement
public ElementAccess<?> getElement()
Returns the language specific component element- Specified by:
getElement
in interfaceIComponentAccess
- Returns:
- Component element
-
-