Class ClassRefactor
- java.lang.Object
-
- org.apache.tapestry5.versionmigrator.ClassRefactor
-
public final class ClassRefactor extends Object
Class that represents information about one class being renamed and/or moved between artifacts (JARs) and/or packages.
-
-
Constructor Summary
Constructors Constructor Description ClassRefactor(String newClassName, String oldClassName, String sourceArtifact, String destinationArtifact)Constructor for classes being moved from one artifact to another and possibly being renamed or moved between packages.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDestinationArtifact()Returns the artifact where the class is now located.StringgetNewClassName()Returns the new fully-qualified class name.StringgetNewPackageName()Returns the new package location.StringgetOldClassName()Returns the old fully-qualified class name.StringgetSimpleOldClassName()Returns the simple old class name.StringgetSourceArtifact()Returns the artifact where the class was located.booleanisInternal()Returns whether the class is internal or not.booleanisMovedBetweenArtifacts()Returns whether the class was moved between artifacts.booleanisRenamed()Returns whether the class had its fully qualified class name changed.StringtoString()
-
-
-
Constructor Detail
-
ClassRefactor
public ClassRefactor(String newClassName, String oldClassName, String sourceArtifact, String destinationArtifact)
Constructor for classes being moved from one artifact to another and possibly being renamed or moved between packages.
-
-
Method Detail
-
getNewClassName
public String getNewClassName()
Returns the new fully-qualified class name.
-
getOldClassName
public String getOldClassName()
Returns the old fully-qualified class name.
-
getSourceArtifact
public String getSourceArtifact()
Returns the artifact where the class was located.
-
getDestinationArtifact
public String getDestinationArtifact()
Returns the artifact where the class is now located.
-
isMovedBetweenArtifacts
public boolean isMovedBetweenArtifacts()
Returns whether the class was moved between artifacts.
-
isRenamed
public boolean isRenamed()
Returns whether the class had its fully qualified class name changed. This includes package changes.
-
getSimpleOldClassName
public String getSimpleOldClassName()
Returns the simple old class name.
-
isInternal
public boolean isInternal()
Returns whether the class is internal or not.
-
getNewPackageName
public String getNewPackageName()
Returns the new package location.
-
-