policyMgmt
Class Element
java.lang.Object
|
+--policyMgmt.Element
- public class Element
- extends java.lang.Object
This is the base class of all elements. An Element represents an
arbitrary managable instance that can be read and/or written by
a policy.
|
Constructor Summary |
Element()
Create an Element. |
Element(Driver drv)
Create an Element and assign the Driver that will be used for it |
|
Method Summary |
void |
commit()
Commit the configuration of this Element by writing it back
to the underlying device using the element's driver |
java.lang.String |
getRole()
Return the role-string of the element |
void |
remove()
Remove this Element from the underlying device |
void |
setRole(java.lang.String newRole)
Set a role-string for this element |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Element
public Element(Driver drv)
- Create an Element and assign the Driver that will be used for it
- Parameters:
drv - the Driver to be used
Element
public Element()
- Create an Element.
setRole
public void setRole(java.lang.String newRole)
- Set a role-string for this element
- Parameters:
newRole - the new role string
getRole
public java.lang.String getRole()
- Return the role-string of the element
- Returns:
- the role string
commit
public void commit()
throws java.io.IOException
- Commit the configuration of this Element by writing it back
to the underlying device using the element's driver
remove
public void remove()
- Remove this Element from the underlying device