net.sf.panoptes.model.component.registry
Class ComponentName
java.lang.Object
|
+--net.sf.panoptes.model.component.registry.ComponentName
- All Implemented Interfaces:
- java.io.Serializable
- public class ComponentName
- extends java.lang.Object
- implements java.io.Serializable
Represents the IComponent reference. Original code from JBoss.
- Version:
- 0.1
- Author:
- dag@liodden.no
- See Also:
ComponentRegistry
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DOMAIN_COMPONENT_QUERY
public static final java.lang.String DOMAIN_COMPONENT_QUERY
- See Also:
- Constant Field Values
DOMAIN_MBEAN_DOMAIN
public static final java.lang.String DOMAIN_MBEAN_DOMAIN
- See Also:
- Constant Field Values
DOMAIN_MBEAN_SERVER
public static final java.lang.String DOMAIN_MBEAN_SERVER
- See Also:
- Constant Field Values
DOMAIN_MBEAN
public static final java.lang.String DOMAIN_MBEAN
- See Also:
- Constant Field Values
DOMAIN_LOGGER
public static final java.lang.String DOMAIN_LOGGER
- See Also:
- Constant Field Values
ComponentName
public ComponentName(java.lang.String name)
throws MalformedComponentNameException
ComponentName
public ComponentName(java.lang.String domain,
java.lang.String name)
throws MalformedComponentNameException
ComponentName
public ComponentName(java.lang.String domain,
java.util.Hashtable table)
throws MalformedComponentNameException
quote
public static java.lang.String quote(java.lang.String value)
- Quotes the passed string suitable for use as a value in an
ObjectName.
- Parameters:
value
- the string to quote
- Returns:
- the quoted string
- Throws:
java.lang.NullPointerException
- for a null string
unquote
public static java.lang.String unquote(java.lang.String value)
- Unquotes a string, unquote(quote(s)).equals(s) is always true.
- Parameters:
value
- the string to unquote
- Returns:
- the unquoted string
- Throws:
java.lang.IllegalArgumentException
- when the string is
not of a form that can be unquoted.
java.lang.NullPointerException
- for a null string
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
isPattern
public boolean isPattern()
getCanonicalName
public java.lang.String getCanonicalName()
getDomain
public java.lang.String getDomain()
getKeyProperty
public java.lang.String getKeyProperty(java.lang.String property)
getKeyPropertyList
public java.util.Hashtable getKeyPropertyList()
getKeyPropertyListString
public java.lang.String getKeyPropertyListString()
getCanonicalKeyPropertyListString
public java.lang.String getCanonicalKeyPropertyListString()
isPropertyPattern
public boolean isPropertyPattern()
setDomain
public void setDomain(java.lang.String domain)
throws MalformedComponentNameException
MalformedComponentNameException
matches
public boolean matches(ComponentName pattern)
- Checks if this instance matches a pattern.
- Parameters:
pattern
- the pattern
- Returns:
- true if it matches
Copyright © 2003 . All Rights Reserved.