public class CommonsValidatorInspector extends BaseXmlInspector
mLog| Constructor and Description |
|---|
CommonsValidatorInspector(CommonsValidatorInspectorConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected Element |
getDocumentElement(ResourceResolver resolver,
InputStream... files)
Parse the given InputStreams into a single DOM Document, and return its root.
|
protected String |
getNameAttribute()
The attribute on child elements that uniquely identifies them.
|
protected String |
getTopLevelTypeAttribute()
Overridden to search by
name=, not type=. |
protected Map<String,String> |
inspectProperty(Element toInspect)
Inspect the given Element and return a Map of attributes if it is a property.
|
getDocumentElement, getExtendsAttribute, getReferenceAttribute, getTypeAttribute, inspect, inspectAction, inspectAsDom, inspectTrait, inspectTraits, inspectTraitSiblings, preprocessDocument, traverse, traverseFromTopLevelTypeToNamedChildrenpublic CommonsValidatorInspector(CommonsValidatorInspectorConfig config)
protected Element getDocumentElement(ResourceResolver resolver, InputStream... files) throws Exception
BaseXmlInspectorgetDocumentElement in class BaseXmlInspectorresolver - helper in case getDocumentElement needs to resolve references defined
in the InputStream.Exceptionprotected Map<String,String> inspectProperty(Element toInspect)
BaseXmlInspectorIt is this method's responsibility to decide whether the given Element does, in fact, qualify as a 'property' - based on its own rules. Does nothing by default.
inspectProperty in class BaseXmlInspectortoInspect - DOM element to inspectprotected String getTopLevelTypeAttribute()
name=, not type=.getTopLevelTypeAttribute in class BaseXmlInspectorprotected String getNameAttribute()
getNameAttribute in class BaseXmlInspectorCopyright © 2015. All Rights Reserved.