com.wewebu.ow.server.util
Interface OwAttributeBag

All Known Subinterfaces:
OwAttributeBagWriteable, OwMandator, OwObjectCollection
All Known Implementing Classes:
OwConfiguration, OwDocument, OwMasterDocument, OwObjectCollectionDelegator, OwObjectLinksDocument, OwPermissionsDocument, OwPolicyLevelDocument, OwPrivilegesDocument, OwPrivilegeSetEditorDocument, OwQueriedCollection, OwRoleOptionAttributeBag, OwSimpleAttributeBagWriteable, OwSplitObjectListDocument, OwStandardDBAttributeBagWriteable, OwStandardDBInvertedAttributeBag, OwStandardObjectCollection

public interface OwAttributeBag

Interface for attribute bags, which describe the attribute of an object.

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


Method Summary
 int attributecount()
          get the number of attributes, or -1 if unknown
 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
 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
 

Method Detail

getAttribute

Object getAttribute(int iIndex_p)
                    throws Exception
get a object at the specified index or throws OwObjectNotFoundException

Parameters:
iIndex_p - int index
Returns:
Object
Throws:
Exception

getAttribute

Object getAttribute(String strName_p)
                    throws Exception
get the attribute with the given name or throws OwObjectNotFoundException

Throws:
Exception

getSafeAttribute

Object getSafeAttribute(String strName_p,
                        Object default_p)
get the attribute with the given name, returns default if not found.


hasAttribute

boolean hasAttribute(String strName_p)
check if attribute exists


attributecount

int attributecount()
get the number of attributes, or -1 if unknown


getAttributeNames

Collection getAttributeNames()
get all attribute names in the bag



Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.