public class DatacollectionGroup extends Object implements Serializable
| Constructor and Description |
|---|
DatacollectionGroup() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(Group group) |
void |
addGroup(int index,
Group group) |
void |
addResourceType(int index,
ResourceType resourceType) |
void |
addResourceType(ResourceType resourceType) |
void |
addSystemDef(int index,
SystemDef systemDef) |
void |
addSystemDef(SystemDef systemDef) |
Enumeration<Group> |
enumerateGroup()
Method enumerateGroup.
|
Enumeration<ResourceType> |
enumerateResourceType()
Method enumerateResourceType.
|
Enumeration<SystemDef> |
enumerateSystemDef()
Method enumerateSystemDef.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Group[] |
getGroup()
Method getGroup.Returns the contents of the collection in an
Array.
|
Group |
getGroup(int index)
Method getGroup.
|
List<Group> |
getGroupCollection()
Method getGroupCollection.Returns a reference to
'_groupList'.
|
int |
getGroupCount()
Method getGroupCount.
|
String |
getName()
Returns the value of field 'name'.
|
ResourceType[] |
getResourceType()
Method getResourceType.Returns the contents of the
collection in an Array.
|
ResourceType |
getResourceType(int index)
Method getResourceType.
|
List<ResourceType> |
getResourceTypeCollection()
Method getResourceTypeCollection.Returns a reference to
'_resourceTypeList'.
|
int |
getResourceTypeCount()
Method getResourceTypeCount.
|
SystemDef[] |
getSystemDef()
Method getSystemDef.Returns the contents of the collection
in an Array.
|
SystemDef |
getSystemDef(int index)
Method getSystemDef.
|
List<SystemDef> |
getSystemDefCollection()
Method getSystemDefCollection.Returns a reference to
'_systemDefList'.
|
int |
getSystemDefCount()
Method getSystemDefCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Deprecated.
|
Iterator<Group> |
iterateGroup()
Method iterateGroup.
|
Iterator<ResourceType> |
iterateResourceType()
Method iterateResourceType.
|
Iterator<SystemDef> |
iterateSystemDef()
Method iterateSystemDef.
|
void |
marshal(ContentHandler handler)
Deprecated.
|
void |
marshal(Writer out)
Deprecated.
|
void |
removeAllGroup() |
void |
removeAllResourceType() |
void |
removeAllSystemDef() |
boolean |
removeGroup(Group group)
Method removeGroup.
|
Group |
removeGroupAt(int index)
Method removeGroupAt.
|
boolean |
removeResourceType(ResourceType resourceType)
Method removeResourceType.
|
ResourceType |
removeResourceTypeAt(int index)
Method removeResourceTypeAt.
|
boolean |
removeSystemDef(SystemDef systemDef)
Method removeSystemDef.
|
SystemDef |
removeSystemDefAt(int index)
Method removeSystemDefAt.
|
void |
setGroup(Group[] groups) |
void |
setGroup(int index,
Group group) |
void |
setGroup(List<Group> groups)
Sets the value of '_groupList' by copying the given Vector.
|
void |
setGroupCollection(List<Group> groups)
Deprecated.
|
void |
setName(String name)
Sets the value of field 'name'.
|
void |
setResourceType(int index,
ResourceType resourceType) |
void |
setResourceType(List<ResourceType> resourceTypes)
Sets the value of '_resourceTypeList' by copying the given
Vector.
|
void |
setResourceType(ResourceType[] resourceTypes) |
void |
setResourceTypeCollection(List<ResourceType> resourceTypes)
Deprecated.
|
void |
setSystemDef(int index,
SystemDef systemDef) |
void |
setSystemDef(List<SystemDef> systemDefs)
Sets the value of '_systemDefList' by copying the given
Vector.
|
void |
setSystemDef(SystemDef[] systemDefs) |
void |
setSystemDefCollection(List<SystemDef> systemDefs)
Deprecated.
|
static DatacollectionGroup |
unmarshal(Reader reader)
Deprecated.
|
void |
validate()
Deprecated.
|
public void addGroup(Group group) throws IndexOutOfBoundsException
group - IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void addGroup(int index,
Group group)
throws IndexOutOfBoundsException
index - group - IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void addResourceType(ResourceType resourceType) throws IndexOutOfBoundsException
resourceType - IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void addResourceType(int index,
ResourceType resourceType)
throws IndexOutOfBoundsException
index - resourceType - IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void addSystemDef(SystemDef systemDef) throws IndexOutOfBoundsException
systemDef - IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void addSystemDef(int index,
SystemDef systemDef)
throws IndexOutOfBoundsException
index - systemDef - IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Enumeration<Group> enumerateGroup()
public Enumeration<ResourceType> enumerateResourceType()
public Enumeration<SystemDef> enumerateSystemDef()
public boolean equals(Object obj)
public Group getGroup(int index) throws IndexOutOfBoundsException
index - IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic Group[] getGroup()
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<Group> getGroupCollection()
public int getGroupCount()
public String getName()
public ResourceType getResourceType(int index) throws IndexOutOfBoundsException
index - IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic ResourceType[] getResourceType()
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<ResourceType> getResourceTypeCollection()
public int getResourceTypeCount()
public SystemDef getSystemDef(int index) throws IndexOutOfBoundsException
index - IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic SystemDef[] getSystemDef()
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<SystemDef> getSystemDefCollection()
public int getSystemDefCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
@Deprecated public boolean isValid()
public Iterator<Group> iterateGroup()
public Iterator<ResourceType> iterateResourceType()
public Iterator<SystemDef> iterateSystemDef()
@Deprecated 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 marshalingorg.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema@Deprecated public void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler - IOException - if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void removeAllGroup()
public void removeAllResourceType()
public void removeAllSystemDef()
public boolean removeGroup(Group group)
group - public Group removeGroupAt(int index)
index - public boolean removeResourceType(ResourceType resourceType)
resourceType - public ResourceType removeResourceTypeAt(int index)
index - public boolean removeSystemDef(SystemDef systemDef)
systemDef - public SystemDef removeSystemDefAt(int index)
index - public void setGroup(int index,
Group group)
throws IndexOutOfBoundsException
index - group - IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setGroup(Group[] groups)
groups - public void setGroup(List<Group> groups)
groups - the Vector to copy.public void setGroupCollection(List<Group> groups)
groups - the Vector to set.public void setName(String name)
name - the value of field 'name'.public void setResourceType(int index,
ResourceType resourceType)
throws IndexOutOfBoundsException
index - resourceType - IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setResourceType(ResourceType[] resourceTypes)
resourceTypes - public void setResourceType(List<ResourceType> resourceTypes)
resourceTypes - the Vector to copy.public void setResourceTypeCollection(List<ResourceType> resourceTypes)
resourceTypes - the Vector to set.public void setSystemDef(int index,
SystemDef systemDef)
throws IndexOutOfBoundsException
index - systemDef - IndexOutOfBoundsException - if the index
given is outside the bounds of the collectionpublic void setSystemDef(SystemDef[] systemDefs)
systemDefs - public void setSystemDef(List<SystemDef> systemDefs)
systemDefs - the Vector to copy.public void setSystemDefCollection(List<SystemDef> systemDefs)
systemDefs - the Vector to set.@Deprecated public static DatacollectionGroup 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 marshalingorg.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema@Deprecated public void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schemaCopyright © 2015. All Rights Reserved.