|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.nds.dirxml.shimhost.OldStyleParams.Param
Encapsulation of a single shim parameter.
Constructor Summary | |
OldStyleParams.Param(String name)
Create a Param instance. |
Method Summary | |
String |
getDisplayName()
Return the display name of this Param |
String |
getName()
Get the name of this Param |
String |
getValue()
Get the value of this Param |
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 |
setDisplayName(String newName)
Set the display name for this Param |
void |
setName(String newName)
Set the name of this Param |
void |
setValue(String newValue)
Set the value of this Param |
Element |
toXML(Node parent)
Construct an XML representation of this Param
Note that the act of creating an XML representation does not reset this instance's
modified flag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OldStyleParams.Param(String name) throws IllegalArgumentException
Param
instance.
name
- name of the parameter (and name of XML element)
IllegalArgumentException
- if name does not match the XML Name productionMethod 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
true
or false
resetModified()
,
toXML(org.w3c.dom.Node)
public void resetModified()
hasBeenModified()
will return false
.
hasBeenModified()
public Element toXML(Node parent)
Param
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 representation
hasBeenModified()
,
resetModified()
public String getName()
Param
public void setName(String newName) throws IllegalArgumentException
Param
newName
- name
IllegalArgumentException
- if newName
doesn't match the XML Name productionpublic String getDisplayName()
Param
null
)public void setDisplayName(String newName)
Param
newName
- display namepublic String getValue()
Param
public void setValue(String newValue)
Param
newValue
- value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |