public class Views extends Object implements Serializable
Constructor and Description |
---|
Views() |
Modifier and Type | Method and Description |
---|---|
void |
addView(int index,
View vView) |
void |
addView(View vView) |
Enumeration<View> |
enumerateView()
Method enumerateView.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
View[] |
getView()
Method getView.Returns the contents of the collection in an
Array.
|
View |
getView(int index)
Method getView.
|
List<View> |
getViewCollection()
Method getViewCollection.Returns a reference to '_viewList'.
|
int |
getViewCount()
Method getViewCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<View> |
iterateView()
Method iterateView.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllView() |
boolean |
removeView(View vView)
Method removeView.
|
View |
removeViewAt(int index)
Method removeViewAt.
|
void |
setView(int index,
View vView) |
void |
setView(List<View> vViewList)
Sets the value of '_viewList' by copying the given Vector.
|
void |
setView(View[] vViewArray) |
void |
setViewCollection(List<View> viewList)
Deprecated.
|
static Views |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addView(View vView) throws IndexOutOfBoundsException
vView
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addView(int index, View vView) throws IndexOutOfBoundsException
index
- vView
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<View> enumerateView()
public boolean equals(Object obj)
public View getView(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic View[] getView()
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<View> getViewCollection()
public int getViewCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<View> iterateView()
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 removeAllView()
public boolean removeView(View vView)
vView
- public View removeViewAt(int index)
index
- public void setView(int index, View vView) throws IndexOutOfBoundsException
index
- vView
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setView(View[] vViewArray)
vViewArray
- public void setView(List<View> vViewList)
vViewList
- the Vector to copy.public void setViewCollection(List<View> viewList)
viewList
- the Vector to set.public static Views 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 © 2017. All rights reserved.