org.jpox.store
Interface StoreSchemaData


public interface StoreSchemaData

Interface representing schema definition for the store. Supports a tree structure, with StoreSchemaData having bidirectional relation with other components. Each component can have a set of properties.


Method Summary
 void addChild(StoreSchemaData child)
          Method to define a child component for this component.
 void addProperty(java.lang.String name, java.lang.String value)
          Method to define a property for this component.
 StoreSchemaData getChild(int position)
          Accessor for a child store metadata component.
 java.util.List getChildren()
          Accessor for the number of child metadata components.
 int getNumberOfChildren()
          Accessor for the number of child metadata components.
 StoreSchemaData getParent()
          Accessor for the parent store metadata component for this (if any).
 java.lang.Object getProperty(java.lang.String name)
          Accessor for a property of this store metadata component.
 void setParent(StoreSchemaData parent)
          Method to set the parentage of a component.
 

Method Detail

addProperty

void addProperty(java.lang.String name,
                 java.lang.String value)
Method to define a property for this component.

Parameters:
name - Name of the property
value - Value

getProperty

java.lang.Object getProperty(java.lang.String name)
Accessor for a property of this store metadata component.

Parameters:
name - Name of the property
Returns:
Property value

setParent

void setParent(StoreSchemaData parent)
Method to set the parentage of a component.

Parameters:
parent - Parent component

getParent

StoreSchemaData getParent()
Accessor for the parent store metadata component for this (if any).

Returns:
Parent component

addChild

void addChild(StoreSchemaData child)
Method to define a child component for this component.

Parameters:
child - The component

getChildren

java.util.List getChildren()
Accessor for the number of child metadata components.

Returns:
Number of child components.

getChild

StoreSchemaData getChild(int position)
Accessor for a child store metadata component.

Parameters:
position - Position of the child component (first = 0)
Returns:
The child component.

getNumberOfChildren

int getNumberOfChildren()
Accessor for the number of child metadata components.

Returns:
Number of child components.


Copyright © -2008 . All Rights Reserved.