|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.nds.dirxml.shimhost.Filter.FilterItem
public abstract static class Filter.FilterItem
Base class for FilterClass
and FilterAttr
classes. Contains
common data for both.
Field Summary | |
---|---|
protected boolean |
modified
|
protected String |
name
|
protected int[] |
syncMode
|
Method Summary | |
---|---|
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 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 . |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final String name
protected int[] syncMode
protected boolean modified
Method Detail |
---|
public 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 called
true
or false
resetModified()
,
toXML(org.w3c.dom.Node)
public void resetModified()
hasBeenModified()
will return false
.
hasBeenModified()
public int getSyncMode(int channel) throws IllegalArgumentException
FilterItem
channel
- SUB
or PUB
SYNC_SYNC
, SYNC_NOTIFY
,
SYNC_RESET
, or SYNC_IGNORE
IllegalArgumentException
- if channel is incorrectpublic void setSyncMode(int mode, int channel) throws IllegalArgumentException
mode
- SYNC_SYNC
, SYNC_NOTIFY
,
SYNC_RESET
, or SYNC_IGNORE
channel
- SUB
or PUB
IllegalArgumentException
- if mode is incorrect or if
channel is incorrect.protected abstract void checkSyncMode(int mode) throws IllegalArgumentException
mode
- sync mode value to check.
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 String getElementName()
FilterItem
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |