org.openmdx.compatibility.base.exception
Class Property

java.lang.Object
  extended by org.openmdx.kernel.exception.BasicException.Parameter
      extended by org.openmdx.compatibility.base.exception.Property
All Implemented Interfaces:
Serializable

Deprecated. use BaseException.Parameter

public final class Property
extends BasicException.Parameter
implements Serializable

The Property class represents a multivalue property given by a property name and multiple property values. Property values are always of type string.

Author:
J. Lang
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openmdx.kernel.exception.BasicException.Parameter
EXCEPTION_CLASS, EXCEPTION_SOURCE
 
Constructor Summary
Property(Map.Entry mapEntry)
          Deprecated. use BasicException.Parameter#Parameter(String,Object)
Property(String name, boolean value)
          Deprecated. use BasicException.Parameter#Parameter(String,boolean)
Property(String name, byte value)
          Deprecated. use BasicException.Parameter#Parameter(String,byte)
Property(String name, int value)
          Deprecated. use BasicException.Parameter#Parameter(String,int)
Property(String name, long value)
          Deprecated. use BasicException.Parameter#Parameter(String,long)
Property(String name, Object values)
          Deprecated. use BasicException.Parameter#Parameter(String,Object)
Property(String name, short value)
          Deprecated. use BasicException.Parameter#Parameter(String,short)
 
Method Summary
 Object get(int index)
          Deprecated. without replacement
 String getFirstValue()
          Deprecated. use BasicException.Parameter#getValue()
 String[] getValues()
          Deprecated. use BasicException.Parameter#getValue()
 int size()
          Deprecated. without replacement
 
Methods inherited from class org.openmdx.kernel.exception.BasicException.Parameter
add, equals, getName, getValue, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Property

public Property(String name,
                Object values)
Deprecated. use BasicException.Parameter#Parameter(String,Object)

Creates a Property object.

Parameters:
name - The property name
values - A non-null object containing property values

Property

public Property(Map.Entry mapEntry)
Deprecated. use BasicException.Parameter#Parameter(String,Object)

Creates a Property object.

Parameters:
mapEntry - A map entry

Property

public Property(String name,
                boolean value)
Deprecated. use BasicException.Parameter#Parameter(String,boolean)

Creates a Property object.

Parameters:
name - the property's name.
value - the property's value

Property

public Property(String name,
                byte value)
Deprecated. use BasicException.Parameter#Parameter(String,byte)

Creates a Property object.

Parameters:
name - the property's name.
value - the property's value

Property

public Property(String name,
                short value)
Deprecated. use BasicException.Parameter#Parameter(String,short)

Creates a Property object.

Parameters:
name - the property's name.
value - the property's value

Property

public Property(String name,
                int value)
Deprecated. use BasicException.Parameter#Parameter(String,int)

Creates a Property object.

Parameters:
name - the property's name.
value - the property's value

Property

public Property(String name,
                long value)
Deprecated. use BasicException.Parameter#Parameter(String,long)

Creates a Property object.

Parameters:
name - the property's name.
value - the property's value
Method Detail

getFirstValue

public final String getFirstValue()
Deprecated. use BasicException.Parameter#getValue()

Returns the property's first value.

Returns:
The property's first value as a string; or null if it is empty

getValues

public final String[] getValues()
Deprecated. use BasicException.Parameter#getValue()

Returns the string representation of the property's value.

The returned array must not be modifed by the caller.

Returns:
The property's values

get

public Object get(int index)
Deprecated. without replacement

Returns the element at the specified position in this list.

Parameters:
index - index of element to return.
Returns:
the element at the specified position in this list.
Throws:
IndexOutOfBoundsException - if the given index is out of range (index < 0 || index >= size()).

size

public int size()
Deprecated. without replacement

Returns the number of elements in this list. If this list contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Returns:
the number of elements in this list.


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.