org.sapia.soto
Class Attribute
java.lang.Object
org.sapia.soto.Attribute
- All Implemented Interfaces:
- org.sapia.util.xml.confix.ObjectCreationCallback
public class Attribute
- extends java.lang.Object
- implements org.sapia.util.xml.confix.ObjectCreationCallback
An instance of this class represents a Service attribute. Attributes
are specified as part of a service configuration. They allow adding runtime metadata
to services in a non-programmatic way, through configuration, in a manner similar
to JMX attributes.
- Author:
- Yanick Duchesne
- Copyright:
- Copyright © 2002-2005 Sapia Open Source Software. All Rights Reserved.
- License:
- Read the license.txt file of the jar or visit the
license page at the Sapia OSS web site
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Attribute
public Attribute()
setName
public Attribute setName(java.lang.String name)
- Sets this attribute's name, that should be of the
form namespace:localname. The namespace is
optional.
- Parameters:
name - this attribute's name.
getNameSpace
public java.lang.String getNameSpace()
- Returns:
- the "namespace" part of this attribute's name.
getLocalName
public java.lang.String getLocalName()
- Returns:
- the "local name" part of this attribute's name.
getName
public java.lang.String getName()
- Returns:
- the fully qualified name of this attribute.
setValue
public Attribute setValue(java.lang.String value)
- Parameters:
value - some string value.
- Returns:
- this instance.
getValue
public java.lang.String getValue()
- Returns:
- this instance's value.
onCreate
public java.lang.Object onCreate()
throws org.sapia.util.xml.confix.ConfigurationException
- Specified by:
onCreate in interface org.sapia.util.xml.confix.ObjectCreationCallback
- Throws:
org.sapia.util.xml.confix.ConfigurationException- See Also:
ObjectCreationCallback.onCreate()
Copyright © 2010 Sapia OSS. All Rights Reserved.