Package com.sodius.mdw.server.structure
Interface Node
-
public interface Node
A node part of a structure. Each node has a name, some attributes and may have children.Clients may implement this interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<String>
getAttributeNames()
Returns the names of the attributes attached to this node.String
getAttributeValue(String name)
Returns the value of the attribute identified by the specified nameString
getId()
Returns the identifier of the node.List<Node>
getInlineChildren()
Returns the inline child nodes, nodes that were computed at the time this node was retrieved and for which there's no need to go through the structure provider.String
getTitle()
Returns the title of the node, for end-user display.String
getType()
Returns the type name of the node, for end-user display.
-
-
-
Method Detail
-
getId
String getId()
Returns the identifier of the node. This identifier is used to request children on the structure provider.- Returns:
- the identifier of the node.
- See Also:
StructureProvider.getChildren(com.sodius.mdw.core.util.PropertySet, String)
-
getType
String getType()
Returns the type name of the node, for end-user display. The type name is related to the underlying data source.- Returns:
- the type name of the node.
-
getTitle
String getTitle()
Returns the title of the node, for end-user display.- Returns:
- the title of the node.
-
getAttributeNames
Collection<String> getAttributeNames()
Returns the names of the attributes attached to this node.- Returns:
- the names of the attributes attached to this node.
-
getAttributeValue
String getAttributeValue(String name)
Returns the value of the attribute identified by the specified name- Parameters:
name
- the attribute name.- Returns:
- the attribute value,
null
if none.
-
getInlineChildren
List<Node> getInlineChildren()
Returns the inline child nodes, nodes that were computed at the time this node was retrieved and for which there's no need to go through the structure provider. Inline children are to be used when child information is quite lightweight and when the cost to reconnect to the data source would be too high.- Returns:
- the inline child nodes.
-
-