|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.config.groups.Group
Field Summary | |
private java.lang.String |
_comments
|
private java.lang.String |
_name
|
private java.util.ArrayList |
_userList
|
private java.util.Vector |
propertyChangeListeners
|
Constructor Summary | |
Group()
|
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Registers a PropertyChangeListener with this class. |
void |
addUser(int index,
java.lang.String vUser)
|
void |
addUser(java.lang.String vUser)
|
void |
clearUser()
|
java.util.Enumeration |
enumerateUser()
|
boolean |
equals(java.lang.Object obj)
Note: hashCode() has not been overriden |
java.lang.String |
getComments()
Returns the value of field 'comments'. |
java.lang.String |
getName()
Returns the value of field 'name'. |
java.lang.String[] |
getUser()
|
java.lang.String |
getUser(int index)
|
java.util.Collection |
getUserCollection()
|
int |
getUserCount()
|
boolean |
isValid()
|
void |
marshal(org.xml.sax.DocumentHandler handler)
|
void |
marshal(java.io.Writer out)
|
protected void |
notifyPropertyChangeListeners(java.lang.String fieldName,
java.lang.Object oldValue,
java.lang.Object newValue)
Notifies all registered PropertyChangeListeners when a bound property's value changes. |
boolean |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Removes the given PropertyChangeListener from this classes list of ProperyChangeListeners. |
boolean |
removeUser(java.lang.String vUser)
|
void |
setComments(java.lang.String comments)
Sets the value of field 'comments'. |
void |
setName(java.lang.String name)
Sets the value of field 'name'. |
void |
setUser(int index,
java.lang.String vUser)
|
void |
setUser(java.lang.String[] userArray)
|
void |
setUserCollection(java.util.Collection vUser)
|
static Group |
unmarshal(java.io.Reader reader)
|
void |
validate()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String _name
private java.lang.String _comments
private java.util.ArrayList _userList
private java.util.Vector propertyChangeListeners
Constructor Detail |
public Group()
Method Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to register.public void addUser(java.lang.String vUser) throws java.lang.IndexOutOfBoundsException
vUser
-
java.lang.IndexOutOfBoundsException
public void addUser(int index, java.lang.String vUser) throws java.lang.IndexOutOfBoundsException
index
- vUser
-
java.lang.IndexOutOfBoundsException
public void clearUser()
public java.util.Enumeration enumerateUser()
public boolean equals(java.lang.Object obj)
obj
- public java.lang.String getComments()
public java.lang.String getName()
public java.lang.String getUser(int index) throws java.lang.IndexOutOfBoundsException
index
-
java.lang.IndexOutOfBoundsException
public java.lang.String[] getUser()
public java.util.Collection getUserCollection()
public int getUserCount()
public boolean isValid()
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void marshal(org.xml.sax.DocumentHandler handler) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
protected void notifyPropertyChangeListeners(java.lang.String fieldName, java.lang.Object oldValue, java.lang.Object newValue)
fieldName
- the name of the property that has changed.newValue
- the new value of the property.oldValue
- the old value of the property.public boolean removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
pcl
- The PropertyChangeListener to remove.
public boolean removeUser(java.lang.String vUser)
vUser
- public void setComments(java.lang.String comments)
comments
- the value of field 'comments'.public void setName(java.lang.String name)
name
- the value of field 'name'.public void setUser(int index, java.lang.String vUser) throws java.lang.IndexOutOfBoundsException
index
- vUser
-
java.lang.IndexOutOfBoundsException
public void setUser(java.lang.String[] userArray)
userArray
- public void setUserCollection(java.util.Collection vUser)
vUser
- public static Group unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
-
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException
public void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |