org.jface.stepmt.transform.config
Class Template

java.lang.Object
  extended byorg.jface.stepmt.transform.config.Template
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
PipelineTemplate

public class Template
extends java.lang.Object
implements java.lang.Comparable

Loads a Template from an XML document. A document must have the following structure:

 <template>
   <name>
     <!-- Name of the template here. -->
   </name>
   <region class="org.jface.stepmt.core.Region">
     <!-- Properties of the region and sub-regions here. -->
   </region>
   <!-- Each pattern must instantiate the org.jface.stepmt.core.Pattern
        interface. -->
   <pattern class="...">
     <name>
       <!-- Name of the pattern here. -->
     </name>
   </pattern>
   <!-- Define more patterns here. -->
 </template>
 

The region returned by getRegion() contains already resolved Patterns.

Version:
$Id: Template.java,v 1.2 2004/02/12 22:55:05 powerpete Exp $
Author:
M. Petersen

Constructor Summary
Template(java.io.InputStream stream)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
protected  void configure(jface.util.factory.XmlObjectFactory factory)
           
 java.lang.String getExample()
           
 java.lang.String getName()
           
 org.jface.stepmt.core.Region getRegion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Template

public Template(java.io.InputStream stream)
         throws jface.util.factory.FactoryException
Method Detail

configure

protected void configure(jface.util.factory.XmlObjectFactory factory)

getExample

public java.lang.String getExample()

getName

public java.lang.String getName()

getRegion

public org.jface.stepmt.core.Region getRegion()

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable


Copyright © 2003-2004 jface.org. All Rights Reserved.