|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jaw.reference.common.ObjectName
This class is used for representing an object name. An instance of this class can be used for representing:
An object name follows this rule:
domainName:
className[.
keyProperty=
value[,
keyProperty=
value]*]
The variable parts of this rule are:
Constructor Summary | |
ObjectName(java.lang.String name)
Allows an object name to be created given a string. |
|
ObjectName(java.lang.String domain,
java.lang.String className)
Allows an object name without a key property to be created. |
|
ObjectName(java.lang.String domain,
java.lang.String className,
java.util.Hashtable table)
Allows an object name with several key properties to be created. |
|
ObjectName(java.lang.String domain,
java.lang.String className,
java.lang.String key,
java.lang.Object value)
Allows an object name using only one key property to be created. |
Method Summary | |
boolean |
equals(java.lang.Object object)
Compares the current object name with another object name. |
java.lang.String |
getCanonicalName()
Obtains the canonical name. |
java.lang.String |
getCanonicalPropertyListString()
Obtains a string representation of the list of properties in which the properties are sorted. |
java.lang.String |
getClassName()
Obtains the class part. |
java.lang.String |
getDomain()
Obtains the domain part. |
java.lang.Object |
getProperty(java.lang.String property)
Obtains the value of a property in a search key. |
java.util.Hashtable |
getPropertyList()
Obtains a pointer to the list of properties. |
java.lang.String |
getPropertyListString()
Obtains a string representation of the list of properties specified at creation time. |
int |
hashCode()
Returns a hash code for this object name. |
boolean |
isPropertyListEmpty()
Checks if there are no key properties defined for this object name. |
java.lang.String |
toString()
Translates an object name into a string. |
boolean |
validNameForObject()
Checks if a name to be used as an object name is valid. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public ObjectName(java.lang.String domain, java.lang.String className, java.util.Hashtable table) throws java.lang.IllegalArgumentException
domain
- The domain
part of the object name.className
- The class
part of the object name.table
- A hash table containing one or more
search keys. Each search key is an
attribute-value pair.public ObjectName(java.lang.String domain, java.lang.String className, java.lang.String key, java.lang.Object value) throws java.lang.IllegalArgumentException
domain
- The domain
part of the object name.className
- The class
part of the object name.key
- The attribute in the key property
of the object name.value
- The value in the key property
of the object name.public ObjectName(java.lang.String domain, java.lang.String className) throws java.lang.IllegalArgumentException
domain
- The domain
part of the object name.className
- The class
part of the object name.public ObjectName(java.lang.String name) throws java.lang.IllegalArgumentException
name
- A string representation
of the object name.Method Detail |
public java.lang.String toString()
public boolean equals(java.lang.Object object)
object
- The object name that the current object
name is to be compared with.public int hashCode()
public boolean validNameForObject()
public boolean isPropertyListEmpty()
public java.lang.String getCanonicalName()
public java.lang.String getDomain()
public java.lang.String getClassName()
public java.lang.Object getProperty(java.lang.String property)
The
- property the value of which is to be obtained.public java.util.Hashtable getPropertyList()
public java.lang.String getPropertyListString()
public java.lang.String getCanonicalPropertyListString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |