jdsl.graph.api
Class Vertex.NONEVertex
java.lang.Object
|
+--jdsl.graph.api.Vertex.NONEVertex
- All Implemented Interfaces:
- Accessor, Decorable, Position, Vertex
- Enclosing class:
- Vertex
- public static final class Vertex.NONEVertex
- extends java.lang.Object
- implements Vertex
A dummy class, used to implement the constant
Vertex.NONE
. Not intended for reuse
in any way.
Fields inherited from interface jdsl.graph.api.Vertex |
NONE |
Method Summary |
java.lang.Object |
destroy(java.lang.Object key)
Removes the (attribute, value) entry associated with a certain
attribute, attr , from the decorable object. |
java.lang.Object |
element()
Gets the element currently associated with this
accessor. |
java.lang.Object |
get(java.lang.Object key)
Returns the value in the (attribute, value) entry associated with a
certain attribute, attr , in this decorable object. |
boolean |
has(java.lang.Object key)
Tests whether there is an (attribute, value) entry associated with a
certain attribute in this decorable object. |
void |
set(java.lang.Object key,
java.lang.Object value)
Sets the value in the (attribute, value) entry associated with a certain
attribute in this decorable object. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
element
public java.lang.Object element()
throws InvalidAccessorException
- Description copied from interface:
Accessor
- Gets the element currently associated with this
accessor.
- Specified by:
element
in interface Accessor
- Following copied from interface:
jdsl.core.api.Accessor
- Returns:
- the element currently stored at this accessor
set
public void set(java.lang.Object key,
java.lang.Object value)
throws InvalidAccessorException
- Description copied from interface:
Decorable
- Sets the value in the (attribute, value) entry associated with a certain
attribute in this decorable object. Creates the attribute if it does
not already exist in this decorable object.
- Specified by:
set
in interface Decorable
- Following copied from interface:
jdsl.core.api.Decorable
- Parameters:
attr
- The attribute to set (and create if necessary)value
- the new value of the attribute in the decorable object.- Throws:
InvalidAttributeException
- if the key is invalid (i.e. wrong
class)
get
public java.lang.Object get(java.lang.Object key)
throws InvalidAccessorException
- Description copied from interface:
Decorable
- Returns the value in the (attribute, value) entry associated with a
certain attribute,
attr
, in this decorable object.
- Specified by:
get
in interface Decorable
- Following copied from interface:
jdsl.core.api.Decorable
- Parameters:
attr
- The attribute of which to attempt to get the value- Returns:
- The value associated with attribute
- Throws:
InvalidAttributeException
- if attr
is not set or is
otherwise invalid (i.e. wrong class)
destroy
public java.lang.Object destroy(java.lang.Object key)
throws InvalidAccessorException
- Description copied from interface:
Decorable
- Removes the (attribute, value) entry associated with a certain
attribute,
attr
, from the decorable object.
- Specified by:
destroy
in interface Decorable
- Following copied from interface:
jdsl.core.api.Decorable
- Parameters:
attr
- The attribute to destroy (eliminate)- Returns:
- the value associated with destroyed attribute
- Throws:
InvalidAttributeException
- if the attribute is not set or is
otherwise invalid (i.e. wrong class)
has
public boolean has(java.lang.Object key)
throws InvalidAccessorException
- Description copied from interface:
Decorable
- Tests whether there is an (attribute, value) entry associated with a
certain attribute in this decorable object.
- Specified by:
has
in interface Decorable
- Following copied from interface:
jdsl.core.api.Decorable
- Parameters:
attr
- The attribute for which to check this decorable object- Throws:
InvalidAttributeException
- if attribute is invalid for some
reason.