com.unitesk.atp.dynattrs
Class IndexedAttributedImpl

java.lang.Object
  extended by com.unitesk.atp.dynattrs.IndexedAttributedImpl
All Implemented Interfaces:
Attributed, Serializable
Direct Known Subclasses:
BeanWrapper, MapAttributed

public abstract class IndexedAttributedImpl
extends Object
implements Attributed, Serializable

The default implementation of Attributed methods that deals with indexed attributes.

Version:
$Id: IndexedAttributedImpl.java,v 1.2 2005/02/21 16:50:26 all-x Exp $
Author:
Alexey Demakov
See Also:
Serialized Form

Constructor Summary
IndexedAttributedImpl()
           
 
Method Summary
 Object getAttribute(String name, int index)
          Retrieves the value of the specified element of an indexed attribute with the specified name.
 boolean isIndexed(String name)
          Checks whether an attribute with the specified name may be indexed.
 void setAttribute(String name, int index, Object elem)
          Changes the value of the specified element of an indexed attribute with the specified name.
 int sizeAttribute(String name)
          Returns the size of an indexed attribute with the specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.unitesk.atp.dynattrs.Attributed
addAttribute, getAttribute, getAttributeNames, hasAttribute, isAttrCreatable, isRemovable, isWritable, removeAttribute, setAttribute
 

Constructor Detail

IndexedAttributedImpl

public IndexedAttributedImpl()
Method Detail

isIndexed

public boolean isIndexed(String name)
Checks whether an attribute with the specified name may be indexed.

Specified by:
isIndexed in interface Attributed
Parameters:
name - The name of an attribute
Returns:
true if a value of an attribute with the specified name may be indexed, false otherwise.
See Also:
Attributed.hasAttribute(String)

sizeAttribute

public int sizeAttribute(String name)
Returns the size of an indexed attribute with the specified name.

Specified by:
sizeAttribute in interface Attributed
Parameters:
name - The name of an indexed attribute.
Returns:
The size of an indexed attribute.
See Also:
Attributed.hasAttribute(String), Attributed.isIndexed(String)

getAttribute

public Object getAttribute(String name,
                           int index)
Retrieves the value of the specified element of an indexed attribute with the specified name.

Specified by:
getAttribute in interface Attributed
Parameters:
name - The name of an indexed attribute.
index - The index of an indexed attribute.
Returns:
The value of an attribute.
See Also:
Attributed.hasAttribute(String), Attributed.isIndexed(String), Attributed.sizeAttribute(String)

setAttribute

public void setAttribute(String name,
                         int index,
                         Object elem)
Changes the value of the specified element of an indexed attribute with the specified name.

Specified by:
setAttribute in interface Attributed
Parameters:
name - The name of an indexed attribute.
index - The index of an indexed attribute.
elem - The new value of an element with the specified index.
See Also:
Attributed.hasAttribute(String), Attributed.isWritable(String), Attributed.isIndexed(String), Attributed.sizeAttribute(String)


Copyright © 2001-2006 ISP RAS, RedVerst Group. All Rights Reserved.