Interface IBindingContext.IBindingMatcher
- Enclosing interface:
- IBindingContext
public static interface IBindingContext.IBindingMatcher
Implementations of this interface provide a means by which a bound class can
be found that corresponds to an XML element, JSON property, or YAML item
name.
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends IBoundObject>
getBoundClassForJsonName
(String rootName) Determine the bound class for the provided JSON/YAML property/item name.Class<? extends IBoundObject>
getBoundClassForXmlQName
(QName rootQName) Determine the bound class for the provided XMLQName
.of
(IBoundDefinitionModelAssembly assembly) Construct a new binding matcher for the provided assembly definition.
-
Method Details
-
of
Construct a new binding matcher for the provided assembly definition.- Parameters:
assembly
- the assembly definition that matcher is for- Returns:
- the matcher
-
getBoundClassForXmlQName
Determine the bound class for the provided XMLQName
.- Parameters:
rootQName
- the root XML element's QName- Returns:
- the bound class for the XML qualified name or
null
if not recognized
-
getBoundClassForJsonName
Determine the bound class for the provided JSON/YAML property/item name.- Parameters:
rootName
- the JSON/YAML property/item name- Returns:
- the bound class for the JSON property name or
null
if not recognized
-