org.xanot
Interface RuleBuilder

All Known Implementing Classes:
AnnotationRuleBuilder

public interface RuleBuilder

Generate an object value and creation rule

Author:
Ferdinand Neman (newm4n_at_gmail.com)

Method Summary
 AttributeSetRule getAttributeSetRule(java.lang.String path)
          Get attribute setter with specified path.
 AttributeSetRule[] getAttributeSetRule(java.lang.String[] path)
          Get array of AttributeSetRule that have a path similar to an array of paths.
 CloseCollectionInstanceRule getCloseCollectionInstanceRule(java.lang.String path)
          Get CloseCollectionInstanceRule with specified path.
 CloseCollectionInstanceRule[] getCloseCollectionInstanceRule(java.lang.String[] path)
          Get array of CloseCollectionInstanceRule that have a path similar to an array of paths.
 CloseInstanceRule getCloseInstanceRule(java.lang.String path)
          Get closer instance with specified path.
 CloseInstanceRule[] getCloseInstanceRule(java.lang.String[] path)
          Get array of CloseInstanceRule that have a path similar to an array of paths.
 CreateInstanceRule getCreateInstanceRule(java.lang.String path)
          Get CreateInstanceRule with specified path.
 CreateInstanceRule[] getCreateInstanceRule(java.lang.String[] paths)
          Get array of CreateInstanceRule that have a path similar to an array of paths.
 ParentReferenceRule getParentReferenceRule(java.lang.String path)
          Get CreateInstanceRule with specified path.
 ParentReferenceRule[] getParentReferenceRule(java.lang.String[] paths)
          Get array of CreateInstanceRule that have a path similar to an array of paths.
 PropertyCollectionSetRule getPropertyCollectionSetRule(java.lang.String path)
          Get PropertyCollectionSetRule with specified path.
 PropertyCollectionSetRule[] getPropertyCollectionSetRule(java.lang.String[] path)
          Get array of PropertyCollectionSetRule that have a path similar to an array of paths.
 PropertySetRule getPropertySetRule(java.lang.String path)
          Get PropertySetRule with specified path.
 PropertySetRule[] getPropertySetRule(java.lang.String[] path)
          Get array of PropertySetRule that have a path similar to an array of paths.
 java.lang.Class getRoot()
          Get the root class
 java.util.List<XanotRule> getRules(java.lang.String path)
          Get List of XanotRule with specified path.
 java.util.List<XanotRule> getRules(java.lang.String[] paths)
          Get List of XanotRule that have a path similar to an array of paths.
 

Method Detail

getRoot

java.lang.Class getRoot()
Get the root class

Returns:
Root class, never return null

getRules

java.util.List<XanotRule> getRules(java.lang.String path)
Get List of XanotRule with specified path.

Parameters:
path - The path
Returns:
List of XanotRule that it's path is equals to the specified path

getRules

java.util.List<XanotRule> getRules(java.lang.String[] paths)
Get List of XanotRule that have a path similar to an array of paths.

Parameters:
paths - Array of paths.
Returns:
List of XanotRule that have a path similar to the array of path.

getCreateInstanceRule

CreateInstanceRule getCreateInstanceRule(java.lang.String path)
Get CreateInstanceRule with specified path.

Parameters:
path - The path
Returns:
CreateInstanceRule that it's path is equals to the specified path

getCreateInstanceRule

CreateInstanceRule[] getCreateInstanceRule(java.lang.String[] paths)
Get array of CreateInstanceRule that have a path similar to an array of paths.

Parameters:
paths - Array of paths.
Returns:
Array of CreateInstanceRule that have a path similar to the array of path.

getCloseInstanceRule

CloseInstanceRule getCloseInstanceRule(java.lang.String path)
Get closer instance with specified path.

Parameters:
path - The path
Returns:
CloseInstanceRule that it's path is equals to the specified path

getCloseInstanceRule

CloseInstanceRule[] getCloseInstanceRule(java.lang.String[] path)
Get array of CloseInstanceRule that have a path similar to an array of paths.

Parameters:
path - Array of paths.
Returns:
Array of CloseInstanceRule that have a path similar to the array of path.

getPropertySetRule

PropertySetRule getPropertySetRule(java.lang.String path)
Get PropertySetRule with specified path.

Parameters:
path - The path
Returns:
PropertySetRule that it's path is equals to the specified path

getPropertySetRule

PropertySetRule[] getPropertySetRule(java.lang.String[] path)
Get array of PropertySetRule that have a path similar to an array of paths.

Parameters:
path - Array of paths.
Returns:
Array of PropertySetRule that have a path similar to the array of path.

getAttributeSetRule

AttributeSetRule getAttributeSetRule(java.lang.String path)
Get attribute setter with specified path.

Parameters:
path - Rule Path
Returns:
AttributeSetRule instance or null no Attribute Set rule with that path.

getAttributeSetRule

AttributeSetRule[] getAttributeSetRule(java.lang.String[] path)
Get array of AttributeSetRule that have a path similar to an array of paths.

Parameters:
path - Array of paths.
Returns:
Array of AttributeSetRule that have a path similar to the array of path.

getCloseCollectionInstanceRule

CloseCollectionInstanceRule getCloseCollectionInstanceRule(java.lang.String path)
Get CloseCollectionInstanceRule with specified path.

Parameters:
path - The path
Returns:
CloseCollectionInstanceRule that it's path is equals to the specified path

getCloseCollectionInstanceRule

CloseCollectionInstanceRule[] getCloseCollectionInstanceRule(java.lang.String[] path)
Get array of CloseCollectionInstanceRule that have a path similar to an array of paths.

Parameters:
path - Array of paths.
Returns:
Array of CloseCollectionInstanceRule that have a path similar to the array of path.

getPropertyCollectionSetRule

PropertyCollectionSetRule getPropertyCollectionSetRule(java.lang.String path)
Get PropertyCollectionSetRule with specified path.

Parameters:
path - The path
Returns:
PropertyCollectionSetRule that it's path is equals to the specified path

getPropertyCollectionSetRule

PropertyCollectionSetRule[] getPropertyCollectionSetRule(java.lang.String[] path)
Get array of PropertyCollectionSetRule that have a path similar to an array of paths.

Parameters:
path - Array of paths.
Returns:
Array of PropertyCollectionSetRule that have a path similar to the array of path.

getParentReferenceRule

ParentReferenceRule getParentReferenceRule(java.lang.String path)
Get CreateInstanceRule with specified path.

Parameters:
path - The path
Returns:
CreateInstanceRule that it's path is equals to the specified path

getParentReferenceRule

ParentReferenceRule[] getParentReferenceRule(java.lang.String[] paths)
Get array of CreateInstanceRule that have a path similar to an array of paths.

Parameters:
paths - Array of paths.
Returns:
Array of CreateInstanceRule that have a path similar to the array of path.


Copyright 2006 null. All Rights Reserved.