Package org.biojava.bio.program.xff
Class ElementRecognizer.ByNSName
- java.lang.Object
-
- org.biojava.bio.program.xff.ElementRecognizer.ByNSName
-
- All Implemented Interfaces:
ElementRecognizer
- Enclosing interface:
- ElementRecognizer
public static class ElementRecognizer.ByNSName extends java.lang.Object implements ElementRecognizer
Filter elements by name and namespace.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.biojava.bio.program.xff.ElementRecognizer
ElementRecognizer.AllElementRecognizer, ElementRecognizer.ByLocalName, ElementRecognizer.ByNSName, ElementRecognizer.HasAttribute
-
-
Field Summary
-
Fields inherited from interface org.biojava.bio.program.xff.ElementRecognizer
ALL
-
-
Constructor Summary
Constructors Constructor Description ByNSName(java.lang.String nsURI, java.lang.String localName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfilterStartElement(java.lang.String nsURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs)Recognize an element based upon the start element parameters.java.lang.StringtoString()
-
-
-
Method Detail
-
filterStartElement
public boolean filterStartElement(java.lang.String nsURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs)Description copied from interface:ElementRecognizerRecognize an element based upon the start element parameters.- Specified by:
filterStartElementin interfaceElementRecognizer- Parameters:
nsURI- the uri of the element to filterlocalName- the local name of the element to filterqName- the qName of the element to filterattrs- the attributes associated with the element to filter- Returns:
- true if this element is accepted, false otherwise
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-