|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DrbItem
Item interface. This interface represents commons properties of structured data. Supported item kinds are nodes, attributes and values.
| Field Summary | |
|---|---|
static int |
ATTRIBUTE_ITEM
The item is an attribute. |
static int |
NODE_ITEM
The item is a node. |
static int |
UNDEFINED_ITEM
The item type is undefined. |
static int |
VALUE_ITEM
The item is a value. |
| Method Summary | |
|---|---|
int |
getItemType()
A code representing the type of the underlying object, as defined above. |
String |
getName()
Name of the item. |
String |
getNamespaceURI()
Get namespace URI. |
Value |
getValue()
The value of the item. |
void |
rename(String name)
Changes the name of the item. |
void |
setNamespaceURI(String namespace_uri)
Sets a namespace resource identifier. |
Value |
setValue(Value value)
Changes the value of the item. |
| Field Detail |
|---|
static final int UNDEFINED_ITEM
static final int NODE_ITEM
static final int ATTRIBUTE_ITEM
static final int VALUE_ITEM
| Method Detail |
|---|
int getItemType()
String getName()
void rename(String name)
throws NullPointerException,
UnsupportedOperationException
name - Reference to the new name.
UnsupportedOperationException - This exception is raised when the
implementation does not support the requested rename for any
reason (e.g. specific case or general incapability).
NullPointerException - This exception is raised when the passed name
is a null reference.This exception may be overriden by an
UnsupportedOperationException.String getNamespaceURI()
void setNamespaceURI(String namespace_uri)
throws NullPointerException,
UnsupportedOperationException
Important note: The implementation of the item is not supposed to accept namespace changes. For instance it may not be possible to change the namespace of a file that is basically fixed.
namespace_uri - A reference to the new namespace identifier.
NullPointerException - This exception is raised when the passed
reference to the new namespace identifier is null.
UnsupportedOperationException - This exception is raised when the
implementation does not support the requested namespace change
for any reason (e.g. by definition or in the specific case).Value getValue()
Value setValue(Value value)
throws NullPointerException,
ClassCastException,
UnsupportedOperationException
value - The new value of the node. This value shall not be null.
NullPointerException - This exception is raised when the passed
reference to the value is null. This exception may be overriden
by an UnsupportedOperationException.
ClassCastException - This exception is raised when the
implementation has not succeeded to cast the input value in a
type compatible with the current node.
UnsupportedOperationException - This exception is raised when the
implementation does not support the requested assignment for
any reason.
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||