public class Properties extends LexGridBase implements java.io.Serializable
Type | Property and Description |
---|---|
java.util.Enumeration<? extends Property> |
enumerate
Method enumerateProperty.
|
java.util.Iterator<? extends Property> |
iterate
Method iterateProperty.
|
Constructor and Description |
---|
Properties() |
Modifier and Type | Method and Description |
---|---|
void |
addProperty(int index,
Property vProperty) |
void |
addProperty(Property vProperty) |
java.util.Enumeration<? extends Property> |
enumerateProperty()
Method enumerateProperty.
|
Property[] |
getProperty()
Method getProperty.Returns the contents of the collection in
an Array.
|
Property |
getProperty(int index)
Method getProperty.
|
java.util.List<Property> |
getPropertyAsReference()
Method getPropertyAsReference.Returns a reference to
'_propertyList'.
|
int |
getPropertyCount()
Method getPropertyCount.
|
boolean |
isValid()
Method isValid.
|
java.util.Iterator<? extends Property> |
iterateProperty()
Method iterateProperty.
|
void |
marshal(org.xml.sax.ContentHandler handler) |
void |
marshal(java.io.Writer out) |
void |
removeAllProperty() |
boolean |
removeProperty(Property vProperty)
Method removeProperty.
|
Property |
removePropertyAt(int index)
Method removePropertyAt.
|
void |
setProperty(int index,
Property vProperty) |
void |
setProperty(java.util.List<Property> vPropertyList)
Sets the value of '_propertyList' by copying the given
Vector.
|
void |
setProperty(Property[] vPropertyArray) |
void |
setPropertyAsReference(java.util.List<Property> propertyList)
Deprecated.
|
static Properties |
unmarshalProperties(java.io.Reader reader)
Method unmarshalProperties.
|
void |
validate() |
getParent, setParent
public java.util.Enumeration<? extends Property> enumerateProperty
public java.util.Iterator<? extends Property> iterateProperty
public void addProperty(Property vProperty) throws java.lang.IndexOutOfBoundsException
vProperty
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addProperty(int index, Property vProperty) throws java.lang.IndexOutOfBoundsException
index
- vProperty
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic java.util.Enumeration<? extends Property> enumerateProperty()
public Property getProperty(int index) throws java.lang.IndexOutOfBoundsException
index
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Property[] getProperty()
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 java.util.List<Property> getPropertyAsReference()
public int getPropertyCount()
public boolean isValid()
public java.util.Iterator<? extends Property> iterateProperty()
public void marshal(java.io.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(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- java.io.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 removeAllProperty()
public boolean removeProperty(Property vProperty)
vProperty
- public Property removePropertyAt(int index)
index
- public void setProperty(int index, Property vProperty) throws java.lang.IndexOutOfBoundsException
index
- vProperty
- java.lang.IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setProperty(Property[] vPropertyArray)
vPropertyArray
- public void setProperty(java.util.List<Property> vPropertyList)
vPropertyList
- the Vector to copy.public void setPropertyAsReference(java.util.List<Property> propertyList)
propertyList
- the Vector to set.public static Properties unmarshalProperties(java.io.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 schema