|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.util.OwSimpleAttributeBagWriteable
public class OwSimpleAttributeBagWriteable
Implements a simple writable attribute bag that writes to internal memory.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Field Summary | |
|---|---|
protected Map |
m_attributes
the internal map |
| Constructor Summary | |
|---|---|
OwSimpleAttributeBagWriteable()
|
|
| Method Summary | |
|---|---|
int |
attributecount()
get the number of attributes, or -1 if unknown |
void |
clear()
clears the contents of the attribute bag |
Object |
getAttribute(int iIndex_p)
get a object at the specified index or throws OwObjectNotFoundException |
Object |
getAttribute(String strName_p)
get the attribute with the given name or throws OwObjectNotFoundException |
Map |
getAttributeMap()
get the internal map |
Collection |
getAttributeNames()
get all attribute names in the bag |
Object |
getSafeAttribute(String strName_p,
Object default_p)
get the attribute with the given name, returns default if not found. |
boolean |
hasAttribute(String strName_p)
check if attribute exists |
void |
remove(String strName_p)
remove the given attribute |
void |
save()
may be overridden to persist state |
void |
setAttribute(String strName_p,
Object value_p)
set a object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map m_attributes
| Constructor Detail |
|---|
public OwSimpleAttributeBagWriteable()
| Method Detail |
|---|
public void setAttribute(String strName_p,
Object value_p)
throws Exception
OwAttributeBagWriteable
setAttribute in interface OwAttributeBagWriteableExceptionpublic Map getAttributeMap()
public void save()
throws Exception
save in interface OwAttributeBagWriteableException
public Object getAttribute(int iIndex_p)
throws Exception
OwAttributeBag
getAttribute in interface OwAttributeBagiIndex_p - int index
Exception
public Object getAttribute(String strName_p)
throws Exception
OwAttributeBag
getAttribute in interface OwAttributeBagException
public Object getSafeAttribute(String strName_p,
Object default_p)
getSafeAttribute in interface OwAttributeBagpublic boolean hasAttribute(String strName_p)
OwAttributeBag
hasAttribute in interface OwAttributeBagpublic int attributecount()
OwAttributeBag
attributecount in interface OwAttributeBagpublic Collection getAttributeNames()
OwAttributeBag
getAttributeNames in interface OwAttributeBag
public void clear()
throws Exception
clear in interface OwAttributeBagWriteableExceptionpublic void remove(String strName_p)
remove in interface OwAttributeBagWriteablestrName_p - String name of attribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||