public static class Filter.FilterAttr extends Filter.FilterItem
modified, name, syncMode
Modifier and Type | Method and Description |
---|---|
protected void |
checkSyncMode(int mode)
Validate a sync mode argument for
FilterAttr |
protected java.lang.String |
getElementName()
Get the tag name of the XML element used to represent
FilterAttr objects
in XML. |
int |
getMergeAuthority()
Get the value for the 'merge-authority' XML attribute
|
boolean |
getPublisherOptimizeModify()
Get the value for the 'publisher-optimize-modify' XML attribute
|
void |
setMergeAuthority(int value)
Set the value for the 'merge-authority' XML attribute
|
void |
setPublisherOptimizeModify(boolean value)
Set the value for the 'publisher-optimize-modify' XML attribute
|
org.w3c.dom.Element |
toXML(org.w3c.dom.Node parent)
Construct an XML representation of this
FilterAttr instance. |
getName, getSyncMode, hasBeenModified, resetModified, setSyncMode
public int getMergeAuthority()
MERGE_DEFAULT
, MERGE_EDIR
,
MERGE_APP
, or MERGE_NONE
public void setMergeAuthority(int value) throws java.lang.IllegalArgumentException
value
- MERGE_DEFAULT
, MERGE_EDIR
,
MERGE_APP
, or MERGE_NONE
java.lang.IllegalArgumentException
- if value parameter is incorrectpublic boolean getPublisherOptimizeModify()
true
or false
public void setPublisherOptimizeModify(boolean value)
value
- true
or false
public org.w3c.dom.Element toXML(org.w3c.dom.Node parent)
FilterAttr
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 representationFilter.FilterItem.hasBeenModified()
,
Filter.FilterItem.resetModified()
protected void checkSyncMode(int mode) throws java.lang.IllegalArgumentException
FilterAttr
checkSyncMode
in class Filter.FilterItem
mode
- sync mode to checkjava.lang.IllegalArgumentException
- if mode
parameter isn't one of
SYNC_SYNC
, SYNC_NOTIFY
,
SYNC_RESET
, or SYNC_IGNORE
protected java.lang.String getElementName()
FilterAttr
objects
in XML.getElementName
in class Filter.FilterItem