public interface CommonHandleChain extends CommonHandle, Nameable
attribute or method | API |
---|---|
NAME | Nameable.name() |
PREV-SIBLING | getPrevSibling() |
NEXT-SIBLING | getNextSibling() |
PRIVATE-DATA | getPrivateData() , setPrivateData(character) and
setPrivateData(String)
|
handle.unwrap()
API, which, depending on the
handle's state and type, it either returns an
ExternalProgramWrapper
instance (for procedure handles) or an
GenericWidget
instance (for widget, window and frame handles), or
a dynamic proxy using handle.invalidAttrAccessProxy
.
All implementations which do not support one or more of the NAME, PRIVATE-DATA, NEXT-SIBLING
or PREV-SIBLING attributes should call handle.invalidAttribute(java.lang.String, com.goldencode.p2j.util.handle)
. If an attribute is
supported only in read-only mode or the attribute is not supported but its setter is called,
then its setter implementation must explicitly call handle.readOnlyError(com.goldencode.p2j.util.handle, java.lang.String)
.
This interface must be implemented by the following resources: BUFFER, BUFFER-FIELD, PROCEDURE, QUERY, SAX-ATTRIBUTES, SAX-READER, SAX-WRITER, SERVER, SERVER-SOCKET, SOAP-HEADER, SOAP-HEADER-ENTRYREF, SOCKET, TEMP-TABLE, widgets, X-DOCUMENT, X-NODEREF. Following is a list of attributes not supported by certain resources:
Modifier and Type | Method and Description |
---|---|
handle |
getNextSibling()
Get the
next-sibling attribute of this handle. |
handle |
getPrevSibling()
Get the
prev-sibling attribute of this handle. |
character |
getPrivateData()
Get the
private-data attribute of this handle. |
void |
setPrivateData(character data)
Set the
private-data attribute of this handle. |
void |
setPrivateData(java.lang.String data)
Set the
private-data attribute of this handle. |
getResourceType, readOnlyError
id, id, unknown, valid
handle getNextSibling()
next-sibling
attribute of this handle.handle getPrevSibling()
prev-sibling
attribute of this handle.character getPrivateData()
private-data
attribute of this handle.void setPrivateData(character data)
private-data
attribute of this handle.data
- The new private-data value.void setPrivateData(java.lang.String data)
private-data
attribute of this handle.data
- The new private-data value.