com.moximedia.ows
Class PropertyArray

java.lang.Object
  extended bycom.moximedia.ows.PropertyArray
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class PropertyArray
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

This class is used to store named values in the order that they have been added to the array.

Author:
Doug Cates - www.moximedia.com
See Also:
Serialized Form

Constructor Summary
PropertyArray()
          Creates a new instance of PropertiesArray
 
Method Summary
 void clear()
          Clears all entries from the property array.
 java.lang.Object clone()
          Creates a clone of this object.
 PropertyArray getCopy()
          Creates a copy of this object.
 java.lang.String getProperty(java.lang.String name)
          Gets the value of the specified property.
 java.lang.String[] getPropertyNames()
          Gets the names of the properties as an array.
 void setProperty(java.lang.String name, java.lang.String value)
          Sets the value of a property (programmer defined).
 int size()
          Returns a count of the number of properties in the array.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyArray

public PropertyArray()
Creates a new instance of PropertiesArray

Method Detail

clear

public void clear()
Clears all entries from the property array.


clone

public java.lang.Object clone()
Creates a clone of this object. Must be cast back to the correct object type before using. Consider using getCopy() instead.

Returns:
The clone of this object.

getCopy

public PropertyArray getCopy()
Creates a copy of this object.

Returns:
The copy of this object.

getProperty

public java.lang.String getProperty(java.lang.String name)
Gets the value of the specified property.

Parameters:
name - The property name to get.
Returns:
The value, or null if the property is not found.

setProperty

public void setProperty(java.lang.String name,
                        java.lang.String value)
Sets the value of a property (programmer defined).

Parameters:
name - The property name
value - The property value.

getPropertyNames

public java.lang.String[] getPropertyNames()
Gets the names of the properties as an array.

Returns:
An array of property names.

size

public int size()
Returns a count of the number of properties in the array.

Returns:
The number of properties.


Internet Mapping Framework for OpenGIS Java Object Model API (v1.3.007)
Copyright © 2005 Moxi Media Inc. and Province of British Columbia. All Rights Reserved.