org.eclipse.jpt.common.core
Class JptResourceType
java.lang.Object
org.eclipse.jpt.common.core.JptResourceType
public class JptResourceType
- extends java.lang.Object
Describes the file content type and version for JPA resources.
This is a value object that defines an equals(Object) method.
Provisional API: This interface is part of an interim API that is still
under development and expected to change significantly before reaching
stability. It is available at this early stage to solicit feedback from
pioneering adopters on the understanding that any code that uses this API
will almost certainly be broken (repeatedly) as the API evolves.
- Since:
- 2.3
- Version:
- 2.3
|
Field Summary |
static java.lang.String |
UNDETERMINED_VERSION
Version used when version can not be determined or when there is no
sense of version (e.g. |
|
Constructor Summary |
JptResourceType(org.eclipse.core.runtime.content.IContentType contentType)
|
JptResourceType(org.eclipse.core.runtime.content.IContentType contentType,
java.lang.String version)
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
UNDETERMINED_VERSION
public static final java.lang.String UNDETERMINED_VERSION
- Version used when version can not be determined or when there is no
sense of version (e.g. Java).
- See Also:
- Constant Field Values
JptResourceType
public JptResourceType(org.eclipse.core.runtime.content.IContentType contentType)
JptResourceType
public JptResourceType(org.eclipse.core.runtime.content.IContentType contentType,
java.lang.String version)
getContentType
public org.eclipse.core.runtime.content.IContentType getContentType()
getVersion
public java.lang.String getVersion()
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object