public class Cmap extends Object implements Serializable
Constructor and Description |
---|
Cmap() |
Modifier and Type | Method and Description |
---|---|
void |
addCelement(Celement vCelement) |
void |
addCelement(int index,
Celement vCelement) |
void |
addCsubmap(Csubmap vCsubmap) |
void |
addCsubmap(int index,
Csubmap vCsubmap) |
void |
deleteMapHeight() |
void |
deleteMapWidth() |
Enumeration<Celement> |
enumerateCelement()
Method enumerateCelement.
|
Enumeration<Csubmap> |
enumerateCsubmap()
Method enumerateCsubmap.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Celement[] |
getCelement()
Method getCelement.Returns the contents of the collection in
an Array.
|
Celement |
getCelement(int index)
Method getCelement.
|
List<Celement> |
getCelementCollection()
Method getCelementCollection.Returns a reference to
'_celementList'.
|
int |
getCelementCount()
Method getCelementCount.
|
Csubmap[] |
getCsubmap()
Method getCsubmap.Returns the contents of the collection in
an Array.
|
Csubmap |
getCsubmap(int index)
Method getCsubmap.
|
List<Csubmap> |
getCsubmapCollection()
Method getCsubmapCollection.Returns a reference to
'_csubmapList'.
|
int |
getCsubmapCount()
Method getCsubmapCount.
|
String |
getMapAccess()
Returns the value of field 'mapAccess'.
|
String |
getMapBG()
Returns the value of field 'mapBG'.
|
String |
getMapGroup()
Returns the value of field 'mapGroup'.
|
int |
getMapHeight()
Returns the value of field 'mapHeight'.
|
String |
getMapName()
Returns the value of field 'mapName'.
|
String |
getMapOwner()
Returns the value of field 'mapOwner'.
|
int |
getMapWidth()
Returns the value of field 'mapWidth'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
hasMapHeight()
Method hasMapHeight.
|
boolean |
hasMapWidth()
Method hasMapWidth.
|
boolean |
isValid()
Method isValid.
|
Iterator<Celement> |
iterateCelement()
Method iterateCelement.
|
Iterator<Csubmap> |
iterateCsubmap()
Method iterateCsubmap.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllCelement() |
void |
removeAllCsubmap() |
boolean |
removeCelement(Celement vCelement)
Method removeCelement.
|
Celement |
removeCelementAt(int index)
Method removeCelementAt.
|
boolean |
removeCsubmap(Csubmap vCsubmap)
Method removeCsubmap.
|
Csubmap |
removeCsubmapAt(int index)
Method removeCsubmapAt.
|
void |
setCelement(Celement[] vCelementArray) |
void |
setCelement(int index,
Celement vCelement) |
void |
setCelement(List<Celement> vCelementList)
Sets the value of '_celementList' by copying the given
Vector.
|
void |
setCelementCollection(List<Celement> celementList)
Deprecated.
|
void |
setCsubmap(Csubmap[] vCsubmapArray) |
void |
setCsubmap(int index,
Csubmap vCsubmap) |
void |
setCsubmap(List<Csubmap> vCsubmapList)
Sets the value of '_csubmapList' by copying the given
Vector.
|
void |
setCsubmapCollection(List<Csubmap> csubmapList)
Deprecated.
|
void |
setMapAccess(String mapAccess)
Sets the value of field 'mapAccess'.
|
void |
setMapBG(String mapBG)
Sets the value of field 'mapBG'.
|
void |
setMapGroup(String mapGroup)
Sets the value of field 'mapGroup'.
|
void |
setMapHeight(int mapHeight)
Sets the value of field 'mapHeight'.
|
void |
setMapName(String mapName)
Sets the value of field 'mapName'.
|
void |
setMapOwner(String mapOwner)
Sets the value of field 'mapOwner'.
|
void |
setMapWidth(int mapWidth)
Sets the value of field 'mapWidth'.
|
static Cmap |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addCelement(Celement vCelement) throws IndexOutOfBoundsException
vCelement
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addCelement(int index, Celement vCelement) throws IndexOutOfBoundsException
index
- vCelement
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addCsubmap(Csubmap vCsubmap) throws IndexOutOfBoundsException
vCsubmap
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addCsubmap(int index, Csubmap vCsubmap) throws IndexOutOfBoundsException
index
- vCsubmap
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void deleteMapHeight()
public void deleteMapWidth()
public Enumeration<Celement> enumerateCelement()
public Enumeration<Csubmap> enumerateCsubmap()
public boolean equals(Object obj)
public Celement getCelement(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Celement[] getCelement()
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<Celement> getCelementCollection()
public int getCelementCount()
public Csubmap getCsubmap(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Csubmap[] getCsubmap()
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<Csubmap> getCsubmapCollection()
public int getCsubmapCount()
public String getMapAccess()
public String getMapBG()
public String getMapGroup()
public int getMapHeight()
public String getMapName()
public String getMapOwner()
public int getMapWidth()
public boolean hasMapHeight()
public boolean hasMapWidth()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<Celement> iterateCelement()
public Iterator<Csubmap> iterateCsubmap()
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 schemapublic 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 removeAllCelement()
public void removeAllCsubmap()
public boolean removeCelement(Celement vCelement)
vCelement
- public Celement removeCelementAt(int index)
index
- public boolean removeCsubmap(Csubmap vCsubmap)
vCsubmap
- public Csubmap removeCsubmapAt(int index)
index
- public void setCelement(int index, Celement vCelement) throws IndexOutOfBoundsException
index
- vCelement
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setCelement(Celement[] vCelementArray)
vCelementArray
- public void setCelement(List<Celement> vCelementList)
vCelementList
- the Vector to copy.public void setCelementCollection(List<Celement> celementList)
celementList
- the Vector to set.public void setCsubmap(int index, Csubmap vCsubmap) throws IndexOutOfBoundsException
index
- vCsubmap
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setCsubmap(Csubmap[] vCsubmapArray)
vCsubmapArray
- public void setCsubmap(List<Csubmap> vCsubmapList)
vCsubmapList
- the Vector to copy.public void setCsubmapCollection(List<Csubmap> csubmapList)
csubmapList
- the Vector to set.public void setMapAccess(String mapAccess)
mapAccess
- the value of field 'mapAccess'.public void setMapBG(String mapBG)
mapBG
- the value of field 'mapBG'.public void setMapGroup(String mapGroup)
mapGroup
- the value of field 'mapGroup'.public void setMapHeight(int mapHeight)
mapHeight
- the value of field 'mapHeight'.public void setMapName(String mapName)
mapName
- the value of field 'mapName'.public void setMapOwner(String mapOwner)
mapOwner
- the value of field 'mapOwner'.public void setMapWidth(int mapWidth)
mapWidth
- the value of field 'mapWidth'.public static Cmap 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 schemapublic 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.