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

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

public class MetaType
extends BrahmsObject
implements Type

The MetaType class specifies a supported Brahms metatype.

Version:
15 July 2002
Author:
Ron van Hoof
See Also:
Serialized Form

Field Summary
 
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
MetaType()
           
MetaType(int type)
           
 
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 meta type.
 java.lang.String getName()
          Returns the name or String representation of the type
 int getType()
          Returns the type represented by this type.
static boolean isMetaType(int type)
          Indicates whether the type indicated by the specified type constants is a meta type.
 void setType(int 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
 

Constructor Detail

MetaType

public MetaType()

MetaType

public MetaType(int type)
Method Detail

isMetaType

public static final boolean isMetaType(int type)
Indicates whether the type indicated by the specified type constants is a meta type.

Parameters:
type - the type constant to be tested
Returns:
boolean true if the type constant is for a meta type

setType

public void setType(int type)

getType

public int getType()
Description copied from interface: Type
Returns the type represented by this type.

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

getName

public java.lang.String getName()
Description copied from interface: Type
Returns the name or String representation of the type

Specified by:
getName in interface Type
Returns:
String the String representation

getFullyQualifiedName

public java.lang.String getFullyQualifiedName()
Returns the fully qualified name of the meta 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.