public class ClassHierarchyContext extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ClassHierarchyContext(ClassHierarchyContext outer)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNamedComponent(String label,
ElementBase comp,
ValidationContext vctx)
Add named component to set defined at this level.
|
void |
addTypedComponent(IClass clas,
ElementBase comp,
ValidationContext vctx)
Add typed component to set defined at this level.
|
ClassHierarchyContext |
getContaining()
Get containing context.
|
ElementBase |
getMostSpecificComponent(IClass clas)
Get best binding component for class.
|
ElementBase |
getNamedComponent(String name)
Get named binding component definition.
|
ElementBase |
getSpecificComponent(String name)
Get specific binding component for type.
|
boolean |
isCompatibleType(IClass clas)
Checks if a class is compatible with one or more components.
|
protected ClassHierarchyContext(ClassHierarchyContext outer)
outer - containing context (null if at root of tree)public ClassHierarchyContext getContaining()
null if at root of
tree)public void addTypedComponent(IClass clas, ElementBase comp, ValidationContext vctx)
clas - class information to be associated with componentcomp - definition component to be addedvctx - validation context in usepublic void addNamedComponent(String label, ElementBase comp, ValidationContext vctx)
label - name to be associated with componentcomp - definition component to be addedvctx - validation context in usepublic ElementBase getSpecificComponent(String name)
name - fully qualified class name to be convertednull if not
foundpublic ElementBase getNamedComponent(String name)
name - component name to be foundnull if not
foundpublic ElementBase getMostSpecificComponent(IClass clas)
clas - information for target classnull if
none foundpublic boolean isCompatibleType(IClass clas)
clas - information for target classtrue if compatible type, false if notCopyright © 2005–2016 jibx.org. All rights reserved.