|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.config.rancid.adapter.Policies
public class Policies
Configuration of Policy functionality
| Constructor Summary | |
|---|---|
Policies()
|
|
| Method Summary | |
|---|---|
void |
addPolicyManage(int index,
PolicyManage vPolicyManage)
|
void |
addPolicyManage(PolicyManage vPolicyManage)
|
Enumeration<PolicyManage> |
enumeratePolicyManage()
Method enumeratePolicyManage. |
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method. |
PolicyManage[] |
getPolicyManage()
Method getPolicyManage.Returns the contents of the collection in an Array. |
PolicyManage |
getPolicyManage(int index)
Method getPolicyManage. |
List<PolicyManage> |
getPolicyManageCollection()
Method getPolicyManageCollection.Returns a reference to '_policyManageList'. |
int |
getPolicyManageCount()
Method getPolicyManageCount. |
int |
hashCode()
Overrides the java.lang.Object.hashCode method. |
boolean |
isValid()
Method isValid. |
Iterator<PolicyManage> |
iteratePolicyManage()
Method iteratePolicyManage. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
removeAllPolicyManage()
|
boolean |
removePolicyManage(PolicyManage vPolicyManage)
Method removePolicyManage. |
PolicyManage |
removePolicyManageAt(int index)
Method removePolicyManageAt. |
void |
setPolicyManage(int index,
PolicyManage vPolicyManage)
|
void |
setPolicyManage(List<PolicyManage> vPolicyManageList)
Sets the value of '_policyManageList' by copying the given Vector. |
void |
setPolicyManage(PolicyManage[] vPolicyManageArray)
|
void |
setPolicyManageCollection(List<PolicyManage> policyManageList)
Deprecated. |
static Policies |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Policies()
| Method Detail |
|---|
public void addPolicyManage(PolicyManage vPolicyManage)
throws IndexOutOfBoundsException
vPolicyManage -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collection
public void addPolicyManage(int index,
PolicyManage vPolicyManage)
throws IndexOutOfBoundsException
index - vPolicyManage -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<PolicyManage> enumeratePolicyManage()
public boolean equals(Object obj)
equals in class Objectobj -
public PolicyManage getPolicyManage(int index)
throws IndexOutOfBoundsException
index -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic PolicyManage[] getPolicyManage()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<PolicyManage> getPolicyManageCollection()
public int getPolicyManageCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
hashCode in class Objectpublic boolean isValid()
public Iterator<PolicyManage> iteratePolicyManage()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllPolicyManage()
public boolean removePolicyManage(PolicyManage vPolicyManage)
vPolicyManage -
public PolicyManage removePolicyManageAt(int index)
index -
public void setPolicyManage(int index,
PolicyManage vPolicyManage)
throws IndexOutOfBoundsException
index - vPolicyManage -
IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setPolicyManage(PolicyManage[] vPolicyManageArray)
vPolicyManageArray - public void setPolicyManage(List<PolicyManage> vPolicyManageList)
vPolicyManageList - the Vector to copy.public void setPolicyManageCollection(List<PolicyManage> policyManageList)
policyManageList - the Vector to set.
public static Policies unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||