|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.nds.dirxml.shimhost.OldStyleParams
public class OldStyleParams
Class encapsulating "old-style" DirXML shim parameters (i.e., pre-GCV-style parameters.
Nested Class Summary | |
---|---|
static class |
OldStyleParams.Param
Encapsulation of a single shim parameter. |
static class |
OldStyleParams.PasswordParam
Encapsulation of a "password-ref" shim parameter. |
Field Summary | |
---|---|
static String |
ATTR_DISPLAY_NAME
Name of the XML 'display-name' attribute. |
static String |
ATTR_TYPE
Name of the XML 'type' attribute. |
static String |
VAL_PASSWORD_REF
"password-ref" |
Constructor Summary | |
---|---|
OldStyleParams()
Create an empty OldStyleParams instance. |
|
OldStyleParams(Node parent)
Create an OldStyleParams instance from an XML representation. |
Method Summary | |
---|---|
void |
addParam(OldStyleParams.Param param)
Add an old-style shim parameter to this instance. |
OldStyleParams.Param |
getParam(String paramName)
Get a shim parameter from this instance by name. |
boolean |
hasBeenModified()
Return true if this instance has been modified. |
Iterator |
iterator()
Get an Iterator that will return all the Param instances in
this OldStyleParams instance. |
void |
removeParam(String paramName)
Remove a shim parameter from this instance. |
void |
resetModified()
Reset the modified flag for this instance such that hasBeenModified()
will return false . |
Element |
toXML(Node parent)
Create an XML representation of the shim parameters encapsulated in this instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ATTR_DISPLAY_NAME
public static final String ATTR_TYPE
public static final String VAL_PASSWORD_REF
Constructor Detail |
---|
public OldStyleParams()
OldStyleParams
instance.
public OldStyleParams(Node parent)
OldStyleParams
instance from an XML representation.
parent
- Node
containing the parameter elements (typically
<driver-options>, <subscriber-options>, or <publisher-options>Method Detail |
---|
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
hasBeenModified
in interface ConfigElement
true
or false
resetModified()
,
toXML(org.w3c.dom.Node)
public void resetModified()
hasBeenModified()
will return false
.
resetModified
in interface ConfigElement
hasBeenModified()
public void addParam(OldStyleParams.Param param)
param
- Param
instance to addpublic void removeParam(String paramName)
paramName
- name of parameterpublic OldStyleParams.Param getParam(String paramName)
paramName
- name of parameter
Param
instance or null
, if no parameter has the passed namepublic Iterator iterator()
Iterator
that will return all the Param
instances in
this OldStyleParams
instance.
Iterator
public Element toXML(Node parent)
Note that the act of creating an XML representation does not reset this instance's
modified flag. It must be reset by calling resetModified()
.
toXML
in interface ConfigElement
parent
- Node
under which to construct XML representation
Element
hasBeenModified()
,
resetModified()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |