public static class Filter.FilterClass extends Filter.FilterItem
modified, name, syncMode| Modifier and Type | Method and Description |
|---|---|
protected void |
checkSyncMode(int mode)
Validate a sync mode argument for
FilterClass |
java.util.Collection |
getAttrs()
Get a
Collection of the FilterAttr objects that are members of
this FilterClass instance. |
protected java.lang.String |
getElementName()
Get the tag name of the XML element used to represent
FilterClass objects
in XML. |
Filter.FilterAttr |
getFilterAttr(java.lang.String attrName)
Get the
FilterAttr instance for an attribute in this
FilterClass instance. |
boolean |
getPublisherCreateHomeDir()
Get the value for the 'publisher-create-homedir' XML attribute
|
boolean |
getPublisherTrackTemplateMember()
Get the value for the 'publisher-track-template-member' XML attribute
|
boolean |
hasBeenModified()
Return
true if this instance has been modified. |
java.util.Iterator |
iterator()
Get an
Iterator that returns the FilterAttr objects associated with
this instance. |
Filter.FilterAttr |
newFilterAttr(java.lang.String attrName)
Create a new entry in this
FilterClass instance for an attribute,
if such an entry doesn't already exist. |
Filter.FilterAttr |
removeFilterAttr(java.lang.String attrName)
Remove the entry for an attribute class from this
FilterClass instance
if it exists. |
void |
resetModified()
Reset the modified flag for this instance such that
hasBeenModified()
will return false. |
void |
setPublisherCreateHomeDir(boolean value)
Set the value for the 'publisher-create-homedir' XML attribute
|
void |
setPublisherTrackTemplateMember(boolean value)
Set the value for the 'publisher-track-template-member' XML attribute
|
org.w3c.dom.Element |
toXML(org.w3c.dom.Node parent)
Construct an XML representation of this
FilterClass instance. |
getName, getSyncMode, setSyncModepublic boolean hasBeenModified()
true if this instance has been modified.
The instance is considered to have been modified if a change was made
that affects the persistent representation since:
resetModified() was last calledhasBeenModified in class Filter.FilterItemtrue or falseresetModified(),
toXML(org.w3c.dom.Node)public void resetModified()
hasBeenModified()
will return false.resetModified in class Filter.FilterItemhasBeenModified()public java.util.Collection getAttrs()
Collection of the FilterAttr objects that are members of
this FilterClass instance.Collection of FilterAttr objectspublic java.util.Iterator iterator()
Iterator that returns the FilterAttr objects associated with
this instance.Iterator that returns FilterAttr objectspublic Filter.FilterAttr getFilterAttr(java.lang.String attrName)
FilterAttr instance for an attribute in this
FilterClass instance.attrName - name of attributeFilterAttr instance or nullpublic Filter.FilterAttr newFilterAttr(java.lang.String attrName)
FilterClass instance for an attribute,
if such an entry doesn't already exist.attrName - name of attributeFilterAttr instancepublic Filter.FilterAttr removeFilterAttr(java.lang.String attrName)
FilterClass instance
if it exists.attrName - name of attributeFilterAttr instance or nullpublic boolean getPublisherCreateHomeDir()
true or falsepublic void setPublisherCreateHomeDir(boolean value)
value - true or falsepublic boolean getPublisherTrackTemplateMember()
true or falsepublic void setPublisherTrackTemplateMember(boolean value)
value - true or falsepublic org.w3c.dom.Element toXML(org.w3c.dom.Node parent)
FilterClass instance.
Note that the act of creating an XML representation does not reset this instance's
modified flag. It must be reset by calling resetModified().parent - Node under which to build XML representationhasBeenModified(),
resetModified()protected void checkSyncMode(int mode)
throws java.lang.IllegalArgumentException
FilterClasscheckSyncMode in class Filter.FilterItemmode - sync mode to checkjava.lang.IllegalArgumentException - if mode parameter
isn't one of SYNC_IGNORE or SYNC_SYNCprotected java.lang.String getElementName()
FilterClass objects
in XML.getElementName in class Filter.FilterItem