com.waveset.object
Class ResourceHelper

java.lang.Object
  extended bycom.waveset.object.ResourceHelper

public class ResourceHelper
extends java.lang.Object

ResourceHelper was created to assist augmenting resource definitions via changes to either the resource's schema and/or the resource's attributes.


Constructor Summary
ResourceHelper()
           
 
Method Summary
 void augment(Resource parent)
          The augment method adds the changes (owned by this) to the given resource.
 void resourceAttributeValue(java.lang.String name, java.lang.String value)
           
 void revert(Resource parent)
          The revert method reverts the changes made by augment() (owned by this) from the given resource.
 void schemaString(java.lang.String lhs, java.lang.String rhs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceHelper

public ResourceHelper()
Method Detail

augment

public void augment(Resource parent)
The augment method adds the changes (owned by this) to the given resource.

Parameters:
parent - the resource that will be augmented

revert

public void revert(Resource parent)
The revert method reverts the changes made by augment() (owned by this) from the given resource.

Parameters:
parent - the resource that will be reverted

resourceAttributeValue

public void resourceAttributeValue(java.lang.String name,
                                   java.lang.String value)

schemaString

public void schemaString(java.lang.String lhs,
                         java.lang.String rhs)