| |
|
| java.lang.Object com.sun.addressbook.Element
All known Subclasses: com.sun.addressbook.Entry, com.sun.addressbook.Group, com.sun.addressbook.AddressBook,
Element | public class Element (Code) | | Element - Element is a base class for the Entry, Group and the AddressBook
beans.
|
ADDRESSBOOK | final public static int ADDRESSBOOK(Code) | | |
ALL | final public static int ALL(Code) | | |
ENTRY | final public static int ENTRY(Code) | | Type elements constants
|
GROUP | final public static int GROUP(Code) | | |
UNSPECIFIED | final public static int UNSPECIFIED(Code) | | |
description | protected String description(Code) | | Note for the address book entry.
|
elementType | protected int elementType(Code) | | ElementType - either Entry, Group, or Address Book
|
properties | protected Map properties(Code) | | Additional properties to be stored in the Element. These are specific
to the adapters. Check the docs for the adapters to see the exact
additional properties supported.
|
getDescription | public String getDescription()(Code) | | Get description.
description String |
getElementType | public int getElementType()(Code) | | Get ElementType
int indicating an element type |
getEntryid | public String getEntryid()(Code) | | Get entryid.
entryid String |
getProperty | public Object getProperty(String property)(Code) | | Method to retreive a particular entry property.
value of property |
hasProperty | public boolean hasProperty(String property)(Code) | | Method to check if a particular property exists.
true if property exists, false otherwise |
isAddressBook | public boolean isAddressBook()(Code) | | Convenience method to check if element is of type AddressBook
boolean indicating whether elementType is AddressBook |
isEntry | public boolean isEntry()(Code) | | Convenience method to check if element is of type Entry
boolean indicating whether elementType is Entry |
isGroup | public boolean isGroup()(Code) | | Convenience method to check if element is of type Group
boolean indicating whether elementType is Group |
setCn | public void setCn(String value)(Code) | | Set common name.
Parameters: value - the cn String |
setDescription | public void setDescription(String value)(Code) | | Set description.
Parameters: value - the description String |
setElementType | public void setElementType(int elementType)(Code) | | Set ElementType
int indicating an element type |
setEntryid | public void setEntryid(String value)(Code) | | Set entryid.
Parameters: value - the entryid String |
setProperty | public void setProperty(String property, Object value)(Code) | | Set additional properties that maybe associated with this entry bean. These
are specific to the adapter.
Parameters: property - property keyword Parameters: value - value of property |
setUn | public void setUn(String value)(Code) | | Set unique name.
Parameters: value - the un String |
|
|
|