gov.nasa.arc.brahms.common.data
Class UnknownType

java.lang.Object
  extended by gov.nasa.arc.brahms.common.data.BrahmsObject
      extended by gov.nasa.arc.brahms.common.data.UnknownType
All Implemented Interfaces:
Type, gov.nasa.arc.brahms.common.IConstants, java.io.Serializable

public class UnknownType
extends BrahmsObject
implements Type

The UnknownType represents the type of the 'unknown' value.

Version:
3 August 2001
Author:
Ron van Hoof
See Also:
Serialized Form

Field Summary
static UnknownType UNKNOWN_TYPE
          Constant defining the unknown type used for values specified as unknown
 
Fields inherited from interface gov.nasa.arc.brahms.common.IConstants
ABORT, ACTIVECLASS, ACTIVECONCEPT, ACTIVEINSTANCE, AGENT, ANONYMOUS, ANYAGENT, AREA, AREADEF, ASSIGNED, ATTRIBUTE, BASEAREADEF, BASECLASS, BASECONCEPTUALCLASS, BASEGROUP, BASELIBRARY, BOOLEAN, BROADCAST, BUILDING, BYTE, CCLOCK, CDATE, CHAR, CITY, CLASS, CLOCK, COLLECTALL, COMMUNICATE, COMPLETE, COMPOSITE, COMPUTER, CONCEPT, CONCEPTUALCLASS, CONCEPTUALCONCEPT, CONCEPTUALOBJECT, CONTINUE, COPY, CREATEAGENT, CREATEAREA, CREATEOBJECT, current, CURRENT, DATAFRAME, DATE, DB, DETECTABLE, DIV, DOUBLE, EMAIL, EMPTY_STRING, END, ENDACTIVITY, ENTAGENT, EQ, EXCEPTION, EXPR, FACE2FACE, FACTFRAME, FALSE, FAX, FLOAT, FOREACH, FORONE, G2, GE, GEOGRAPHYCONCEPT, GESTURE, GET, GROUP, GT, IMPASSE, INT, INVALID, JAVA, JAVA_TYPE, KNOWN_MODIFIER, KNOWNVAL_MODIFIER, LE, LOCAL, LONG, LT, MAP, MINUS, MOD, MOVE, MULT, NE, NEW, NONE, NOT_MODIFIER, NOWORK, O, OA, OBJECT, ONTOLOGY, PAGER, PARAMETER, PATH, PHONE, PLUS, PRIMITIVE, PRIVATE, PROAGENT, PROTECTED, PRSAGENT, PUBLIC, PUT, RECEIVE, RELATION, sACTIVECLASS, sACTIVECONCEPT, sACTIVEINSTANCE, sAGENT, sARCHIVE, sAREA, sAREADEF, sBOOLEAN, sBYTE, sBYTECODEEXT, sCHAR, sCLASS, sCOMPUTER, sCONCEPT, sCONCEPTUALCLASS, sCONCEPTUALCONCEPT, sCONCEPTUALOBJECT, sCOPY, sCURRENT, sDETECTABLE, sDOUBLE, sEMAIL, sEND, SEND, sFACE2FACE, sFAX, sFILEEXT, sFLOAT, sGEOGRAPHYCONCEPT, sGROUP, SHORT, SIMAGENT, sINT, sJAVA_TYPE, sLONG, sMAP, sNEW, sNONE, sNOWORK, sOBJECT, SOURCECODE, sPAGER, sPARAMETER, sPATH, sPHONE, sPRIVATE, sPROJECTEXT, sPROTECTED, sPUBLIC, sSHORT, sSTART, sSTRING, sSYMBOL, START, STRING, sUNKNOWN, sVOID, SYMBOL, TRUE, UDT, UML, UNASSIGNED, UNDEFINED, unknown, UNKNOWN, UNKNOWN_MODIFIER, V, VARIABLE, VOID, WHENEVER, WORKFRAME, WORLD, XML
 
Constructor Summary
UnknownType()
          Constructor, creates a new UnknownType.
 
Method Summary
 boolean compareTypes(Type type, boolean target)
          This method compares this type with the given type and checks based on the target flag whether the types can be converted to one another.
 java.lang.String getFullyQualifiedName()
          Returns the fully qualified name of the type.
 java.lang.String getName()
          Returns the string representation of the type.
 int getType()
          Returns the numeric constant representing the UNKNOWN type.
 
Methods inherited from class gov.nasa.arc.brahms.common.data.BrahmsObject
delete, export, getFile, getID, getLine, getSerialNumber, isBCC, isDynamic, isLoaded, isResolved, setBCC, setDynamic, setFile, setID, setID, setLine, setLoaded, setResolved, setSerialNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.arc.brahms.common.data.Type
getSerialNumber
 

Field Detail

UNKNOWN_TYPE

public static final UnknownType UNKNOWN_TYPE
Constant defining the unknown type used for values specified as unknown

Constructor Detail

UnknownType

public UnknownType()
Constructor, creates a new UnknownType.

Method Detail

getType

public int getType()
Returns the numeric constant representing the UNKNOWN type.

Specified by:
getType in interface Type
Returns:
int the type

getName

public java.lang.String getName()
Returns the string representation of the type.

Specified by:
getName in interface Type
Returns:
String the type name 'unknown'

getFullyQualifiedName

public java.lang.String getFullyQualifiedName()
Returns the fully qualified name of the type. This is equal to the name of the type.

Specified by:
getFullyQualifiedName in interface Type
Returns:
String the fully qualified name

compareTypes

public boolean compareTypes(Type type,
                            boolean target)
This method compares this type with the given type and checks based on the target flag whether the types can be converted to one another. If target is true this method checks if the given type can be converted to or is compatible with this type. If target is false this method checks whether this type can be converted to or is compatible with the given type.

Specified by:
compareTypes in interface Type
Parameters:
type - the type to compare this type with
target - true if this type is the target false if the given type ios the target
Returns:
boolean an true if the types are compatible, false otherwise


Copyright © 1997-2012 All Rights Reserved.