|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nasa.arc.brahms.common.data.BrahmsObject gov.nasa.arc.brahms.common.data.ModelElement gov.nasa.arc.brahms.common.data.NamedModelElement gov.nasa.arc.brahms.common.data.Attribute gov.nasa.arc.brahms.common.data.JavaProperty
public class JavaProperty
The class JavaProperty is a subclass of Attribute used to represent a property of a Java object that complies with the Java Bean Specification. The JavaProperty class maintains an index of instances indexed by property name and property type that is used at runtime.
Field Summary |
---|
Fields inherited from class gov.nasa.arc.brahms.common.data.NamedModelElement |
---|
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 | |
---|---|
JavaProperty()
Constructs a new empty JavaProperty instance |
|
JavaProperty(java.lang.String name,
java.lang.Class<?> valueClass)
Constructs a new JavaProperty instance with a given name and Class of allowable values |
|
JavaProperty(java.lang.String file,
int line)
Constructs a new empty JavaProperty instance for an occurrence of the property in a source file at a particular line |
|
JavaProperty(java.lang.String name,
JavaType owner,
java.lang.String file,
int line)
Constructs a new JavaProperty instance representing a named property of a Java class |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Tests whether two Java properties are the same. |
java.lang.String |
getFullyQualifiedName()
Returns the fully qualified name of the Java property. |
static JavaProperty |
getInstance(java.lang.String name,
java.lang.Class<?> valueClass)
Returns a JavaProperty instance with a given name and Class of values. |
JavaType |
getOwnerType()
Returns a JavaType representing the Java class that has the property |
java.lang.Object |
getValue(java.lang.Object object)
Retrieves the value of the Java property from a given Java object |
java.lang.Class<?> |
getValueClass()
Returns the Java Class object for the type of values of the property |
int |
hashCode()
Returns a hash code value for the object. |
protected void |
setID()
Sets the unique identifier for the property. |
void |
setOwnerType(JavaType type)
Sets the JavaType representing the Java class that has the property |
void |
setValue(java.lang.Object object,
java.lang.Object value)
Sets the value of the Java property for a given Java object |
Methods inherited from class gov.nasa.arc.brahms.common.data.Attribute |
---|
getScope, getType, setOwner, setScope, setType |
Methods inherited from class gov.nasa.arc.brahms.common.data.NamedModelElement |
---|
getDisplayText, getName, getOwner, setDisplayText, setFullyQualifiedName, setName, setOwner, toString |
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, setLine, setLoaded, setResolved, setSerialNumber |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JavaProperty()
public JavaProperty(java.lang.String name, java.lang.Class<?> valueClass)
name
- the String name of the propertyvalueClass
- the Class object representing the type of allowed valuespublic JavaProperty(java.lang.String file, int line)
file
- the source file containing the occurrenceline
- the line containing the occurrencepublic JavaProperty(java.lang.String name, JavaType owner, java.lang.String file, int line)
name
- the name of the propertyowner
- a JavaType representing the owning classfile
- the source file containing the occurrenceline
- the line containing the occurrenceMethod Detail |
---|
public static JavaProperty getInstance(java.lang.String name, java.lang.Class<?> valueClass)
name
- the name of the java propertyvalueClass
- the Java Class object representing the class of allowed values for the property
protected void setID()
setID
in class Attribute
public JavaType getOwnerType()
public void setOwnerType(JavaType type)
type
- the JavaType for the owner classpublic java.lang.Class<?> getValueClass()
public java.lang.Object getValue(java.lang.Object object) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
object
- the Java object whose property is to be retrieved
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there is an error getting the value of the propertypublic void setValue(java.lang.Object object, java.lang.Object value) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
object
- the Java object whose property is to be setvalue
- the new value to be given to the property
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there is an error setting the value of the propertypublic java.lang.String getFullyQualifiedName()
getFullyQualifiedName
in class Attribute
public boolean equals(java.lang.Object obj)
equals
in class Attribute
obj
- the Object to be compared for equality
public int hashCode()
Object.hashCode()
for a complete description.
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |