public abstract static class Filter.FilterItem
extends java.lang.Object
FilterClass
and FilterAttr
classes. Contains
common data for both.Modifier and Type | Field and Description |
---|---|
protected boolean |
modified |
protected java.lang.String |
name |
protected int[] |
syncMode |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
checkSyncMode(int mode)
Implemented by derived classes to check sync mode parameters (filter-class
doesn't allow "reset" or "notify"
|
protected abstract java.lang.String |
getElementName()
Implemented by derived classes to return the tag name of the XML element
used for an XML description of the class derived from
FilterItem . |
java.lang.String |
getName()
Get the name of this
FilterItem |
int |
getSyncMode(int channel)
Get a channel sync mode for this
FilterItem |
boolean |
hasBeenModified()
Return
true if this instance has been modified. |
void |
resetModified()
Reset the modified flag for this instance such that
hasBeenModified()
will return false . |
void |
setSyncMode(int mode,
int channel)
Set a channel sync mode for this FilterItem
|
protected final java.lang.String name
protected int[] syncMode
protected boolean modified
public java.lang.String getName()
FilterItem
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 calledtrue
or false
resetModified()
,
toXML(org.w3c.dom.Node)
public void resetModified()
hasBeenModified()
will return false
.hasBeenModified()
public int getSyncMode(int channel) throws java.lang.IllegalArgumentException
FilterItem
channel
- SUB
or PUB
SYNC_SYNC
, SYNC_NOTIFY
,
SYNC_RESET
, or SYNC_IGNORE
java.lang.IllegalArgumentException
- if channel is incorrectpublic void setSyncMode(int mode, int channel) throws java.lang.IllegalArgumentException
mode
- SYNC_SYNC
, SYNC_NOTIFY
,
SYNC_RESET
, or SYNC_IGNORE
channel
- SUB
or PUB
java.lang.IllegalArgumentException
- if mode is incorrect or if
channel is incorrect.protected abstract void checkSyncMode(int mode) throws java.lang.IllegalArgumentException
mode
- sync mode value to check.java.lang.IllegalArgumentException
- if mode parameter isn't one of
SYNC_SYNC
, SYNC_NOTIFY
, SYNC_RESET
,
or SYNC_IGNORE
or if mode parameter isn't valid for derived class.protected abstract java.lang.String getElementName()
FilterItem
.