org.codehaus.mojo.jaxb2
Class TransformSchema

java.lang.Object
  extended by org.codehaus.mojo.jaxb2.TransformSchema

public class TransformSchema
extends Object

Object containing parameters to transform a schema.

Since:
1.4
Author:
Lennart Jörelid

Constructor Summary
TransformSchema()
          Default constructor.
TransformSchema(String uri, String toPrefix, String toFile)
          Compound constructor.
 
Method Summary
 String getToFile()
           
 String getToPrefix()
           
 String getUri()
           
 void setToFile(String toFile)
           
 void setToPrefix(String toPrefix)
           
 void setUri(String uri)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransformSchema

public TransformSchema()
Default constructor.


TransformSchema

public TransformSchema(String uri,
                       String toPrefix,
                       String toFile)
Compound constructor.

Parameters:
uri - The URI of this Schema.
toPrefix - The new namespace prefix for this Schema.
toFile - The new name of the generated schema file.
Method Detail

getUri

public String getUri()
Returns:
The URI of this Schema, such as http://www.jguru.se/some/namespace. The namespace URI is mapped to its prefix in the schema element, i.e: xmlns:xs="http://www.w3.org/2001/XMLSchema" or xmlns:foo="http://www.acme.com/xml/schema/foo".

setUri

public void setUri(String uri)
Parameters:
uri - the uri

getToPrefix

public String getToPrefix()
Returns:
The namespace prefix of this Schema. Each schema element is related to its namespace using the prefix. For an XML element <foo:bar/>, the prefix is "foo" (and the element name is "bar").

setToPrefix

public void setToPrefix(String toPrefix)
Parameters:
toPrefix - the prefix

getToFile

public String getToFile()
Returns:
the name of the target file if when renamed

setToFile

public void setToFile(String toFile)
Parameters:
toFile - the new filename

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2005-2012 Codehaus. All Rights Reserved.