org.eclipse.jpt.jpa.core.context.persistence
Interface PersistenceUnit.Property
- All Superinterfaces:
- org.eclipse.core.runtime.IAdaptable, IResourcePart, JpaContextNode, JpaNode, Model, XmlContextNode
- Enclosing interface:
- PersistenceUnit
public static interface PersistenceUnit.Property
- extends XmlContextNode
Simple property interface.
|
Method Summary |
java.lang.Iterable<org.eclipse.text.edits.ReplaceEdit> |
createMoveTypeEdits(org.eclipse.jdt.core.IType originalType,
org.eclipse.jdt.core.IPackageFragment newPackage)
Create ReplaceEdits for moving any references to the originalType to the newPackage. |
java.lang.Iterable<org.eclipse.text.edits.ReplaceEdit> |
createRenamePackageEdits(org.eclipse.jdt.core.IPackageFragment originalPackage,
java.lang.String newName)
Create ReplaceEdits for renaming the property value package to the newName. |
java.lang.Iterable<org.eclipse.text.edits.ReplaceEdit> |
createRenameTypeEdits(org.eclipse.jdt.core.IType originalType,
java.lang.String newName)
Create ReplaceEdits for renaming the property value to the newName. |
java.lang.String |
getName()
|
PersistenceUnit |
getParent()
Return the JPA node's parent. |
java.lang.String |
getValue()
|
XmlProperty |
getXmlProperty()
|
void |
setName(java.lang.String name)
|
void |
setValue(java.lang.String value)
|
| Methods inherited from interface org.eclipse.jpt.common.utility.model.Model |
addChangeListener, addCollectionChangeListener, addListChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, removeChangeListener, removeCollectionChangeListener, removeListChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
NAME_PROPERTY
static final java.lang.String NAME_PROPERTY
- See Also:
- Constant Field Values
VALUE_PROPERTY
static final java.lang.String VALUE_PROPERTY
- See Also:
- Constant Field Values
getParent
PersistenceUnit getParent()
- Description copied from interface:
JpaNode
- Return the JPA node's parent. The JPA project will not have a parent.
- Specified by:
getParent in interface JpaNode
getName
java.lang.String getName()
setName
void setName(java.lang.String name)
getValue
java.lang.String getValue()
setValue
void setValue(java.lang.String value)
getXmlProperty
XmlProperty getXmlProperty()
createRenameTypeEdits
java.lang.Iterable<org.eclipse.text.edits.ReplaceEdit> createRenameTypeEdits(org.eclipse.jdt.core.IType originalType,
java.lang.String newName)
- Create ReplaceEdits for renaming the property value to the newName.
The originalType has not yet been renamed, the newName is the new short name.
If this value does not match the original type, then return an empty Iterable.
createMoveTypeEdits
java.lang.Iterable<org.eclipse.text.edits.ReplaceEdit> createMoveTypeEdits(org.eclipse.jdt.core.IType originalType,
org.eclipse.jdt.core.IPackageFragment newPackage)
- Create ReplaceEdits for moving any references to the originalType to the newPackage.
The originalType has not yet been moved.
createRenamePackageEdits
java.lang.Iterable<org.eclipse.text.edits.ReplaceEdit> createRenamePackageEdits(org.eclipse.jdt.core.IPackageFragment originalPackage,
java.lang.String newName)
- Create ReplaceEdits for renaming the property value package to the newName.
The originalPackage has not yet been renamed.
If this value is not in the originalPackage, then return an empty Iterable.