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, setSyncMode
public 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.FilterItem
true
or false
resetModified()
,
toXML(org.w3c.dom.Node)
public void resetModified()
hasBeenModified()
will return false
.resetModified
in class Filter.FilterItem
hasBeenModified()
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 null
public 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 null
public boolean getPublisherCreateHomeDir()
true
or false
public void setPublisherCreateHomeDir(boolean value)
value
- true
or false
public boolean getPublisherTrackTemplateMember()
true
or false
public void setPublisherTrackTemplateMember(boolean value)
value
- true
or false
public 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
FilterClass
checkSyncMode
in class Filter.FilterItem
mode
- sync mode to checkjava.lang.IllegalArgumentException
- if mode
parameter
isn't one of SYNC_IGNORE
or SYNC_SYNC
protected java.lang.String getElementName()
FilterClass
objects
in XML.getElementName
in class Filter.FilterItem