|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.bio.seq.io.filterxml.XMLFilterWriter
Write FeatureFilters in XML format.
Nested Class Summary | |
static interface |
XMLFilterWriter.FilterWriter
Interface for an object which can write a FeatureFilter as XML. |
Field Summary | |
static java.lang.String |
XML_FILTER_NS
|
Constructor Summary | |
XMLFilterWriter()
Construct a new XMLFilterWriter which can serialize the buildin types of
FeatureFilter . |
Method Summary | |
void |
addXMLFilterWriter(java.lang.Class clazz,
XMLFilterWriter.FilterWriter xfw)
Add a writer for the specified class of filters |
void |
addXMLFilterWriter(FeatureFilter ff,
XMLFilterWriter.FilterWriter xfw)
Add a writer for a singleton filter. |
boolean |
isStrict()
Determine if this writer is in strict mode. |
void |
setIsStrict(boolean b)
Selects strict mode. |
void |
writeFilter(FeatureFilter ff,
XMLWriter xw)
Write a FeatureFilter to the supplied XMLWriter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String XML_FILTER_NS
Constructor Detail |
public XMLFilterWriter()
XMLFilterWriter
which can serialize the buildin types of
FeatureFilter
.
Method Detail |
public void addXMLFilterWriter(java.lang.Class clazz, XMLFilterWriter.FilterWriter xfw)
public void addXMLFilterWriter(FeatureFilter ff, XMLFilterWriter.FilterWriter xfw)
public boolean isStrict()
public void setIsStrict(boolean b)
IllegalArgumentException
if it encounters a type of FeatureFilter
it doesn't recognize. When not
in strict model, unrecognized filters are silently replaced by FeatureFilter.all
.
Default is false
.
public void writeFilter(FeatureFilter ff, XMLWriter xw) throws java.lang.IllegalArgumentException, java.io.IOException
java.lang.IllegalArgumentException
- if the FeatureFilter is unrecognized, and the writer is
in strict mode.
java.io.IOException
- if an error occurs while outputting XML.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |