net.sf.fikin.ant.types
Class FactoryType

java.lang.Object
  extended by net.sf.fikin.ant.types.IfUnless
      extended by net.sf.fikin.ant.types.FactoryType
All Implemented Interfaces:
Type

public class FactoryType
extends IfUnless

A generic type of JAXP type of factory

Contains ability to specify factory class explicitly

Allows to set features/attributes to it, event ot default one created on Jan 3, 2007

Since:
Version:
$Revision: 1.2 $
Author:
fiykov

Constructor Summary
FactoryType()
           
 
Method Summary
 void addAttibute(Parameter attribute)
          add factory attribute
 void check(org.apache.tools.ant.Task task)
          test for defined factory name (if defined) test for defined attrbutes/features (if any)
 java.util.Vector getAttributes()
           
 java.lang.String getClassname()
           
 void setClassname(java.lang.String fqclassname)
          set the facotry class name
 
Methods inherited from class net.sf.fikin.ant.types.IfUnless
setIf, setUnless, shouldUse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FactoryType

public FactoryType()
Method Detail

setClassname

public void setClassname(java.lang.String fqclassname)
set the facotry class name

Parameters:
fqclassname - factory class name
Ant Task Param Required:
false

getClassname

public java.lang.String getClassname()
Returns:
given factory classname

addAttibute

public void addAttibute(Parameter attribute)
add factory attribute

Parameters:
attribute - to set to the factory
Ant Task Param Required:
false

getAttributes

public java.util.Vector getAttributes()
Returns:
given factory attributes

check

public void check(org.apache.tools.ant.Task task)
           throws org.apache.tools.ant.BuildException
test for defined factory name (if defined) test for defined attrbutes/features (if any)

Parameters:
task - is enclosing ant task
Throws:
org.apache.tools.ant.BuildException


Copyright © 2003-2007 Nikolay Fiykov. All Rights Reserved.