org.apache.jdo.impl.model.java
Class ErrorType

java.lang.Object
  extended byorg.apache.jdo.impl.model.java.AbstractJavaType
      extended byorg.apache.jdo.impl.model.java.ErrorType
All Implemented Interfaces:
JavaElement, 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

Field Summary
static ErrorType errorType
          The singleton ErrorType instance.
 
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, getDeclaredJavaFields, getDeclaredJavaProperties, getJavaField, getJavaProperty, getJDOClass, getModifiers, getSuperclass, getUnderlyingObject, 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
 

Field Detail

errorType

public static final ErrorType errorType
The singleton ErrorType instance.

Constructor Detail

ErrorType

protected ErrorType()
Creates new a ErrorType instance. This constructor should not be called directly; instead, the singleton instance errorType should be used.

Method Detail

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 Apache Software Foundation. All Rights Reserved.