Class CompositorTester

java.lang.Object
org.dlese.dpc.schemedit.test.CompositorTester
Direct Known Subclasses:
ChoiceTester, SequenceTester

public class CompositorTester extends Object
Provides Helpful methods for creating and testing Compositors and CompositorGuards

Builds a compositor given:

  • schemaURI - specifying a schema
  • instanceDocPath - path to xml record on disk, and instance Document for the Schema
  • xpath - determines the instanceElement to be controlled by the Compositor
    Version:
    $Id: CompositorTester.java,v 1.5 2009/03/20 23:33:57 jweather Exp $
    Author:
    Jonathan Ostwald
    • Field Details

      • compositor

        public Compositor compositor
        The compositor created by CompositorTester for the specified schema, instanceDocument, and xpath;
    • Constructor Details

      • CompositorTester

        public CompositorTester(String schemaName, String xpath) throws Exception
        Constructor for the CompositorTester object
        Parameters:
        xpath - Description of the Parameter
        schemaLocation - Description of the Parameter
        instanceDocPath - Description of the Parameter
        Throws:
        Exception - Description of the Exception
    • Method Details

      • getCompositorGuard

        public CompositorGuard getCompositorGuard(String instanceDocPath)
      • main

        public static void main(String[] args) throws Exception
        Create a CompositorTester instance
        Parameters:
        args - The command line arguments
        Throws:
        Exception - NOT YET DOCUMENTED