org.eclipse.jpt.core
Class JpaResourceType

java.lang.Object
  extended by org.eclipse.jpt.core.JpaResourceType

public class JpaResourceType
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
JpaResourceType(org.eclipse.core.runtime.content.IContentType contentType)
           
JpaResourceType(org.eclipse.core.runtime.content.IContentType contentType, java.lang.String version)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 org.eclipse.core.runtime.content.IContentType getContentType()
           
 java.lang.String getVersion()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

JpaResourceType

public JpaResourceType(org.eclipse.core.runtime.content.IContentType contentType)

JpaResourceType

public JpaResourceType(org.eclipse.core.runtime.content.IContentType contentType,
                       java.lang.String version)
Method Detail

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