Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.core.refactoring.descriptors
Class ExtractClassDescriptor.Field

java.lang.Object
  extended by 
org.eclipse.jdt.core.refactoring.descriptors.ExtractClassDescriptor.Field
Enclosing class:
ExtractClassDescriptor

public static class ExtractClassDescriptor.Field
extends Object

Instances of ExtractClassDescriptor.Field describe which fields will be moved to the extracted class and their new name there.


Method Summary
 boolean equals ( Object obj)
           
  String getFieldName ()
          The name of the field in the selected type
  String getNewFieldName ()
          The name of the field in the extracted class.
 int hashCode ()
           
 boolean isCreateField ()
          Returns whether the field will be moved to extracted class.
 void setCreateField (boolean createField)
          Sets whether the field will be moved to extracted class.
 void setNewFieldName ( String newFieldName)
          Sets the name of the field in the extracted class.
  String toString ()
           
 
Methods inherited from class java.lang. Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getFieldName

public 
String getFieldName()
The name of the field in the selected type

Returns:
the name of the field in the selected type

getNewFieldName

public 
String getNewFieldName()
The name of the field in the extracted class. The default is the same as in the selected type

Returns:
the name of the field in the extracted class

setNewFieldName

public void setNewFieldName(
String newFieldName)
Sets the name of the field in the extracted class. The default is the same as in the selected type

Parameters:
newFieldName - the new field name. Must not be null

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(
Object obj)
Overrides:
equals in class Object

toString

public 
String toString()
Overrides:
toString in class Object

isCreateField

public boolean isCreateField()
Returns whether the field will be moved to extracted class. The default is true

Returns:
true if the field will be moved

setCreateField

public void setCreateField(boolean createField)
Sets whether the field will be moved to extracted class. The default is true

Parameters:
createField - if true the field will be moved

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire