public class Uris extends Object implements Serializable
Constructor and Description |
---|
Uris() |
Modifier and Type | Method and Description |
---|---|
void |
addUri(int index,
Uri vUri) |
void |
addUri(Uri vUri) |
Enumeration<Uri> |
enumerateUri()
Method enumerateUri.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
Uri[] |
getUri()
Method getUri.Returns the contents of the collection in an
Array.
|
Uri |
getUri(int index)
Method getUri.
|
List<Uri> |
getUriCollection()
Method getUriCollection.Returns a reference to '_uriList'.
|
int |
getUriCount()
Method getUriCount.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isValid()
Method isValid.
|
Iterator<Uri> |
iterateUri()
Method iterateUri.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllUri() |
boolean |
removeUri(Uri vUri)
Method removeUri.
|
Uri |
removeUriAt(int index)
Method removeUriAt.
|
void |
setUri(int index,
Uri vUri) |
void |
setUri(List<Uri> vUriList)
Sets the value of '_uriList' by copying the given Vector.
|
void |
setUri(Uri[] vUriArray) |
void |
setUriCollection(List<Uri> uriList)
Deprecated.
|
static Uris |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public void addUri(Uri vUri) throws IndexOutOfBoundsException
vUri
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addUri(int index, Uri vUri) throws IndexOutOfBoundsException
index
- vUri
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Uri> enumerateUri()
public boolean equals(Object obj)
public Uri getUri(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Uri[] getUri()
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<Uri> getUriCollection()
public int getUriCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isValid()
public Iterator<Uri> iterateUri()
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 removeAllUri()
public boolean removeUri(Uri vUri)
vUri
- public Uri removeUriAt(int index)
index
- public void setUri(int index, Uri vUri) throws IndexOutOfBoundsException
index
- vUri
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setUri(Uri[] vUriArray)
vUriArray
- public void setUri(List<Uri> vUriList)
vUriList
- the Vector to copy.public void setUriCollection(List<Uri> uriList)
uriList
- the Vector to set.public static Uris 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.