|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.gael.drb.DrbAbstractAttribute
fr.gael.drb.DrbDefaultAttribute
public class DrbDefaultAttribute
Default attribute implementation. This class is a convenient class that implements the DrbAttribute class. It is useful if no specific operations are required for an attribute. It holds a name, a value and enable to configute the specification level (i.e. default value).
| Field Summary |
|---|
| Fields inherited from interface fr.gael.drb.DrbItem |
|---|
ATTRIBUTE_ITEM, NODE_ITEM, UNDEFINED_ITEM, VALUE_ITEM |
| Constructor Summary | |
|---|---|
DrbDefaultAttribute(String name,
Value value)
Simple constructor of an attribute. |
|
DrbDefaultAttribute(String name,
Value value,
boolean specified)
Constructor of a defaulted attribute. |
|
DrbDefaultAttribute(String name,
Value value,
boolean specified,
DrbNode owner)
Constructor of a defaulted attribute with an owner. |
|
DrbDefaultAttribute(String name,
Value value,
DrbNode owner)
Constructor of an attribute with an owner. |
|
DrbDefaultAttribute(XsdAttribute decl,
DrbNode owner)
Schema constructor of an attribute. |
|
| Method Summary | |
|---|---|
String |
getName()
Name of the attribute. |
String |
getNamespaceURI()
Get namespace URI. |
DrbNode |
getOwner()
The node the owning the current attribute. |
Value |
getValue()
The value of the attribute. |
int |
getValueType()
The value type of the attribute. |
boolean |
isSpecified()
The attribute was explicitly given a value. |
void |
rename(String name)
Changes the name of the item. |
void |
setNamespaceURI(String namespace_uri)
Sets the namespace URI. |
Value |
setValue(Value value)
Changes the value of the item. |
String |
toString()
Returns a description of the current attribute. |
| Methods inherited from class fr.gael.drb.DrbAbstractAttribute |
|---|
getItemType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DrbDefaultAttribute(XsdAttribute decl,
DrbNode owner)
decl - attribute declarationowner - The owner node of the attribute.
public DrbDefaultAttribute(String name,
Value value)
name - Name of the attribute.value - Value of the attribute.
public DrbDefaultAttribute(String name,
Value value,
DrbNode owner)
name - Name of the attribute.value - Value of the attribute.owner - The owner node of the attribute.
public DrbDefaultAttribute(String name,
Value value,
boolean specified)
name - Name of the attribute.value - Value of the attribute.specified - True if the attribute is specified and false otherwise.
public DrbDefaultAttribute(String name,
Value value,
boolean specified,
DrbNode owner)
name - Name of the attribute.value - Value of the attribute.specified - True if the attribute is specified and false otherwise.owner - The owner node of the attribute.| Method Detail |
|---|
public final String getName()
public final void rename(String name)
throws NullPointerException,
UnsupportedOperationException
name - Reference to the new name.
UnsupportedOperationException - This exception always raised because
the name property is not defined for values.
NullPointerException - This exception is overriden by an
UnsupportedOperationException.public DrbNode getOwner()
public int getValueType()
public String getNamespaceURI()
public Value getValue()
public boolean isSpecified()
public void setNamespaceURI(String namespace_uri)
throws UnsupportedOperationException
namespace_uri - A reference to the new namespace identifier.
UnsupportedOperationException - This exception is never raised
because the operation is fully implemented and accept any
namespace.
public Value setValue(Value value)
throws NullPointerException,
ClassCastException,
UnsupportedOperationException
value - The new value of the attribute. 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.public String toString()
toString in class DrbAbstractAttribute
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||