org.apache.jdo.impl.model.java
Class ErrorType
java.lang.Object
org.apache.jdo.impl.model.java.AbstractJavaType
org.apache.jdo.impl.model.java.ErrorType
- All Implemented Interfaces:
- JavaType
public class ErrorType
- extends AbstractJavaType
An instance of class ErrorType represents an erroneous type. Components
such as the semantic analysis may use this type to indicate an error
situtaion. It is compatible to all other types.
- Since:
- JDO 1.0.1
- Author:
- Michael Bouschen
Constructor Summary |
protected |
ErrorType()
Creates new a ErrorType instance. |
Method Summary |
java.lang.String |
getName()
Returns the name of the type. |
boolean |
isCompatibleWith(JavaType javaType)
Returns true if this JavaType is compatible with the specified
JavaType. |
Methods inherited from class org.apache.jdo.impl.model.java.AbstractJavaType |
equals, getArrayComponentType, getJavaField, getJDOClass, getModifiers, getSuperclass, hashCode, isArray, isFloatingPoint, isIntegral, isInterface, isJDOSupportedCollection, isJDOSupportedMap, isOrderable, isPersistenceCapable, isPrimitive, isTrackable, isValue, isWrapperClass, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
errorType
public static final ErrorType errorType
- The singleton ErrorType instance.
ErrorType
protected ErrorType()
- Creates new a ErrorType instance. This constructor should not be
called directly; instead, the singleton instance
errorType
should be used.
isCompatibleWith
public boolean isCompatibleWith(JavaType javaType)
- Returns true if this JavaType is compatible with the specified
JavaType. This implementation always returns
true
,
because ErrorType is compatible with any other type.
- Specified by:
isCompatibleWith
in interface JavaType
- Overrides:
isCompatibleWith
in class AbstractJavaType
- Parameters:
javaType
- the type this JavaType is checked with.
- Returns:
true
if this is compatible with the specified
type; false
otherwise.
getName
public java.lang.String getName()
- Returns the name of the type.
- Specified by:
getName
in interface JavaType
- Specified by:
getName
in class AbstractJavaType
- Returns:
- type name
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.