org.apache.torque.mojo.morph
Class SchemaMorpher

java.lang.Object
  extended by org.apache.torque.mojo.morph.Morpher
      extended by org.apache.torque.mojo.morph.SchemaMorpher

public class SchemaMorpher
extends Morpher


Field Summary
(package private)  String antComment
           
(package private)  String antDTDString
           
(package private)  String antPrologue
           
(package private)  String antSchemaName
           
(package private)  String antSchemaToken
           
private static org.apache.commons.logging.Log log
           
(package private)  String newComment
           
(package private)  String newDTDString
           
(package private)  String newPrologue
           
 
Fields inherited from class org.apache.torque.mojo.morph.Morpher
artifactId, morphRequest
 
Constructor Summary
SchemaMorpher()
           
SchemaMorpher(MorphRequest morphRequest, String artifactId)
           
 
Method Summary
 String getAntComment()
           
 String getAntDTDString()
           
 String getAntPrologue()
           
 String getAntSchemaName()
           
 String getAntSchemaToken()
           
protected  String getMorphedContents(String contents)
          Morph an Ant Impex XML file into a Maven Impex Plugin XML file
 String getNewComment()
           
 String getNewDTDString()
           
 String getNewPrologue()
           
protected  boolean isAntImpexSchemaXML(String contents)
          Attempt to determine if this content is from an Ant Impex XML export
protected  boolean isMorphNeeded(String contents)
          Return true if we need to morph this file
 void setAntComment(String defaultComment)
           
 void setAntDTDString(String defaultDTDString)
           
 void setAntPrologue(String antPrologue)
           
 void setAntSchemaName(String defaultSchemaName)
           
 void setAntSchemaToken(String defaultSchemaToken)
           
 void setNewComment(String newComment)
           
 void setNewDTDString(String newDTDString)
           
 void setNewPrologue(String newPrologue)
           
 
Methods inherited from class org.apache.torque.mojo.morph.Morpher
executeMorph, getArtifactId, getMorphRequest, setArtifactId, setMorphRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

antSchemaName

String antSchemaName

antSchemaToken

String antSchemaToken

antDTDString

String antDTDString

newDTDString

String newDTDString

antComment

String antComment

newComment

String newComment

antPrologue

String antPrologue

newPrologue

String newPrologue
Constructor Detail

SchemaMorpher

public SchemaMorpher()

SchemaMorpher

public SchemaMorpher(MorphRequest morphRequest,
                     String artifactId)
Method Detail

isAntImpexSchemaXML

protected boolean isAntImpexSchemaXML(String contents)
Attempt to determine if this content is from an Ant Impex XML export


isMorphNeeded

protected boolean isMorphNeeded(String contents)
Return true if we need to morph this file

Specified by:
isMorphNeeded in class Morpher

getMorphedContents

protected String getMorphedContents(String contents)
Morph an Ant Impex XML file into a Maven Impex Plugin XML file

Specified by:
getMorphedContents in class Morpher

getAntSchemaName

public String getAntSchemaName()

setAntSchemaName

public void setAntSchemaName(String defaultSchemaName)

getAntSchemaToken

public String getAntSchemaToken()

setAntSchemaToken

public void setAntSchemaToken(String defaultSchemaToken)

getAntDTDString

public String getAntDTDString()

setAntDTDString

public void setAntDTDString(String defaultDTDString)

getNewDTDString

public String getNewDTDString()

setNewDTDString

public void setNewDTDString(String newDTDString)

getAntComment

public String getAntComment()

setAntComment

public void setAntComment(String defaultComment)

getNewComment

public String getNewComment()

setNewComment

public void setNewComment(String newComment)

getAntPrologue

public String getAntPrologue()

setAntPrologue

public void setAntPrologue(String antPrologue)

getNewPrologue

public String getNewPrologue()

setNewPrologue

public void setNewPrologue(String newPrologue)


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.