org.noos.xing.mydoggy
Interface PersistenceDelegateCallback.PersistenceNode

Enclosing interface:
PersistenceDelegateCallback

public static interface PersistenceDelegateCallback.PersistenceNode

The interface is used to analyze the properties of a source of persistence data.

Since:
1.5.0

Method Summary
 boolean containsAttribute(String name)
          Returns true if this node contains an attribute for the specified name.
 String getAttributeValue(String name)
          Returns the attribute's value.
 boolean getBoolean(String name, boolean defaultValue)
          Returns the attribute's value as boolean.
 float getFloat(String name, float defaultValue)
          Returns the attribute's value as float.
 int getInteger(String name, int defaultValue)
          Returns the attribute's value as integer.
 String getName()
          Returns the node name.
 

Method Detail

getName

String getName()
Returns the node name.

Returns:
the node name.
Since:
1.5.0

containsAttribute

boolean containsAttribute(String name)
Returns true if this node contains an attribute for the specified name.

Parameters:
name - attribute name whose presence in this node is to be tested.
Returns:
true if this node contains an attributed for the specified name.
Since:
1.5.0

getAttributeValue

String getAttributeValue(String name)
Returns the attribute's value.

Parameters:
name - attribute name whose value in this node is to be returned.
Returns:
the attribute's value.
Since:
1.5.0

getBoolean

boolean getBoolean(String name,
                   boolean defaultValue)
Returns the attribute's value as boolean.

Parameters:
name - name attribute whose value in this node is to be returned.
defaultValue - the value to be returned if the node does not contain an attribute with the specified name.
Returns:
the attribute's value as boolean.
Since:
1.5.0

getInteger

int getInteger(String name,
               int defaultValue)
Returns the attribute's value as integer.

Parameters:
name - name attribute whose value in this node is to be returned.
defaultValue - the value to be returned if the node does not contain an attribute with the specified name.
Returns:
the attribute's value as integer.
Since:
1.5.0

getFloat

float getFloat(String name,
               float defaultValue)
Returns the attribute's value as float.

Parameters:
name - name attribute whose value in this node is to be returned.
defaultValue - the value to be returned if the node does not contain an attribute with the specified name.
Returns:
the attribute's value as float.
Since:
1.5.0


Copyright © 2012. All Rights Reserved.