de.bsd.x2svg.ant
Class Format

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.types.DataType
          extended by de.bsd.x2svg.ant.Format
All Implemented Interfaces:
java.lang.Cloneable

public class Format
extends org.apache.tools.ant.types.DataType

An ant data type to wrapper an X2Svg OutputType object.

Since:
1.1
Author:
gfloodgate

Field Summary
private  java.lang.String type
          The type attribute of the format to use.
private static java.util.Locale US_LOCALE
          A locale used for uppercase conversion - en_US is safe, as no non-ASCII characters are expected.
 
Fields inherited from class org.apache.tools.ant.types.DataType
checked, ref
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
Format()
           
 
Method Summary
 OutputType getOutputType()
          Get the OutputType instance representing the format.
 java.lang.String getType()
          Get the output format requested.
 void setType(java.lang.String type)
          Set the requested output format.
 
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, setRefid, tooManyAttributes, toString
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

US_LOCALE

private static final java.util.Locale US_LOCALE
A locale used for uppercase conversion - en_US is safe, as no non-ASCII characters are expected.


type

private java.lang.String type
The type attribute of the format to use.

Constructor Detail

Format

public Format()
Method Detail

getType

public java.lang.String getType()
Get the output format requested.

Returns:
The string type of the requested format.

setType

public void setType(java.lang.String type)
Set the requested output format.

Parameters:
type - The string type of the requested format.

getOutputType

public OutputType getOutputType()
Get the OutputType instance representing the format.

Returns:
The OutputType representing the requested otuput format, or null if the specified type is invalid or blank.


x2svg version 1.2.1