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

java.lang.Object
  extended by gov.nasa.arc.brahms.common.data.BrahmsObject
      extended by gov.nasa.arc.brahms.common.data.ModelElement
          extended by gov.nasa.arc.brahms.common.data.NamedModelElement
All Implemented Interfaces:
gov.nasa.arc.brahms.common.IConstants, java.io.Serializable
Direct Known Subclasses:
Activity, ActivityRef, Attribute, BFrame, Concept, Model, Parameter, Variable

public class NamedModelElement
extends ModelElement

class NamedModelElement

Version:
1.0
Author:
Ron van Hoof
See Also:
Serialized Form

Field Summary
static java.lang.String NAME_PROPERTY
           
 
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
NamedModelElement()
           
NamedModelElement(java.lang.String name)
           
NamedModelElement(java.lang.String file, int line)
           
NamedModelElement(java.lang.String name, java.lang.String file, int line)
           
 
Method Summary
 java.lang.Object getDisplayText()
           
 java.lang.String getFullyQualifiedName()
          Returns the fully qualified name of the concept
 java.lang.String getName()
           
 NamedModelElement getOwner()
           
 void setDisplayText(java.lang.String text)
           
protected  void setFullyQualifiedName(java.lang.String fqname)
          Sets the fully qualified name of the element
 void setName(java.lang.String name)
           
 void setOwner(NamedModelElement owner)
           
 java.lang.String toString()
          Returns a string representation of the named model element.
 
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, wait, wait, wait
 

Field Detail

NAME_PROPERTY

public static final java.lang.String NAME_PROPERTY
See Also:
Constant Field Values
Constructor Detail

NamedModelElement

public NamedModelElement()

NamedModelElement

public NamedModelElement(java.lang.String name)

NamedModelElement

public NamedModelElement(java.lang.String file,
                         int line)

NamedModelElement

public NamedModelElement(java.lang.String name,
                         java.lang.String file,
                         int line)
Method Detail

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

setDisplayText

public void setDisplayText(java.lang.String text)

getDisplayText

public java.lang.Object getDisplayText()

setOwner

public void setOwner(NamedModelElement owner)

getOwner

public NamedModelElement getOwner()

setFullyQualifiedName

protected void setFullyQualifiedName(java.lang.String fqname)
Sets the fully qualified name of the element

Parameters:
fqname - the fully qualified name

getFullyQualifiedName

public java.lang.String getFullyQualifiedName()
Returns the fully qualified name of the concept

Returns:
String the fully qualified name

toString

public java.lang.String toString()
Returns a string representation of the named model element.

Overrides:
toString in class java.lang.Object
Returns:
String the string representation


Copyright © 1997-2012 All Rights Reserved.