|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Read-only interface for Category object (belongs to a Hierarchy, and groups Items)
Field Summary | |
static java.lang.String |
copyright
IBM standard copyright |
Method Summary | |
java.lang.Object |
getAttribute(java.lang.String path)
Get an attribute value. |
int |
getAttributeOccurrenceCount(java.lang.String path)
Returns the number of occurrences of a particular attribute of this Category, specified by path |
PIMCollection |
getChildCategories()
Retrieves a collection of Categories that are children of this Category |
java.lang.String |
getDisplayName()
Returns the name of this Category object |
Hierarchy |
getHierarchy()
Returns the Hierarchy object containing this Category object. |
java.lang.String |
getPrimaryKey()
Return the primary key of this Category |
boolean |
isRoot()
Identifies whether this Category is the root Category of the Hierarchy it lives within |
Field Detail |
public static final java.lang.String copyright
copyright
Method Detail |
public Hierarchy getHierarchy() throws PIMInternalException, PIMAuthorizationException
PIMInternalException
- if an internal error occursPIMAuthorizationException
- if the user is not authorized to perform this operationpublic java.lang.String getDisplayName() throws PIMInternalException, PIMAuthorizationException
PIMInternalException
- if an internal error occursPIMAuthorizationException
- if the user is not authorized to perform this operation *public PIMCollection getChildCategories() throws PIMInternalException, PIMAuthorizationException
PIMInternalException
- if an internal error occursPIMAuthorizationException
- if the user is not authorized to perform this operation *for more info
public boolean isRoot() throws PIMInternalException, PIMAuthorizationException
PIMInternalException
- if an internal error occursPIMAuthorizationException
- if the user is not authorized to perform this operation *public java.lang.Object getAttribute(java.lang.String path) throws PIMInternalException, PIMAuthorizationException
Multi-Occurrence
attributes will be returned as a java.util.List
of
Occurrences. You can
determine whether a particular attribute is single or multi-Occurrence by
calling getAttributeOccurrenceCount(String)
.
path
- A path to an existing attribute or a multi-Occurrence
parent attribute. This should contain the full path of the attribute required,
e.g. "MySpec/MyString1"Object
. The type of that
Object
corresponds to the attribute types as followsAttribute type | Java type | Notes |
Binary | String | This is the file name |
Currency | Double | The currency symbol needs to be retrieved from the SpecNode |
Date | Date
| |
Flag | Boolean
| |
Image | String | This is the file name |
Image URL | String
| |
Integer | Integer
| |
Lookup Table | String | This is the lookup table entry key. It is left to the caller to retrieve values from the appropriate lookup table |
Number | Double
| |
Number Enumeration | Double
| |
Password | String | Password is returned in the clear |
Relationship | Item | The Item which this relationship points to
|
Sequence | Integer
| |
String | String
| |
String Enumeration | String
| |
Thumbnail Image | String | This is the file name |
Thumbnail Image URL | String
| |
URL | String
|
It is left to the caller to cast the returned Object
to the appropriate type.
java.lang.IllegalArgumentException
- PIMInternalException
- If an internal error occurs.PIMAuthorizationException
- If the user is not allowed to perform
this operationpublic int getAttributeOccurrenceCount(java.lang.String path) throws PIMInternalException, PIMAuthorizationException
path
- A String containing the full path of the attribute required,
e.g. "MySpec/MyString1"PIMInternalException
- if an internal error occursPIMAuthorizationException
- if the user is not authorized to perform this operationpublic java.lang.String getPrimaryKey() throws PIMInternalException, PIMAuthorizationException
PIMInternalException
- if an internal error occursPIMAuthorizationException
- if the user is not authorized to perform this operation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |