Class RuntimeDescriptor
- java.lang.Object
-
- java.util.Observable
-
- org.glassfish.deployment.common.DynamicAttributesDescriptor
-
- org.glassfish.deployment.common.Descriptor
-
- com.sun.enterprise.deployment.runtime.RuntimeDescriptor
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CacheMapping
,ConstraintField
,DefaultResourcePrincipal
,IASEjbExtraDescriptors
,IdempotentUrlPattern
,JnlpDocDescriptor
,LocaleCharsetInfo
,LocaleCharsetMap
,MapElement
,MessageDescriptor
,MessageSecurityBindingDescriptor
,MessageSecurityDescriptor
,Principal
,ProtectionDescriptor
,ResourceAdapter
,RoleMap
,SecurityRoleAssignment
,SecurityRoleMapping
,Servlet
,SessionConfig
,SessionManager
,SunConnector
,WebProperty
,WebPropertyContainer
public abstract class RuntimeDescriptor extends Descriptor
This base class defines common behaviour and data for all runtime descriptors.- Author:
- Jerome Dochez
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected PropertyChangeSupport
propListeners
-
Fields inherited from class org.glassfish.deployment.common.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
-
-
Constructor Summary
Constructors Constructor Description RuntimeDescriptor()
Creates a new instance of RuntimeDescriptorRuntimeDescriptor(RuntimeDescriptor other)
Creates a new instance of RuntimeDescriptor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyChangeListener(PropertyChangeListener l)
Add a property listener for this beanvoid
addPropertyChangeListener(String n, PropertyChangeListener l)
Add a property listener for a specific property nameprotected int
addValue(String name, Object value)
String
getAttributeValue(String attributeName)
String
getAttributeValue(String elementName, int index, String attributeName)
String
getAttributeValue(String elementName, String attributeName)
Object
getValue(String name)
protected Object
getValue(String name, int index)
protected Object[]
getValues(String name)
void
removePropertyChangeListener(PropertyChangeListener l)
removes a property listener for this beanvoid
removePropertyChangeListener(String n, PropertyChangeListener l)
Remover a property listener for specific property nameprotected void
removeValue(String name, int index)
protected int
removeValue(String name, Object value)
void
setAttributeValue(String elementName, int index, String attributeName, Object value)
void
setAttributeValue(String attributeName, String value)
void
setAttributeValue(String elementName, String attributeName, Object value)
protected void
setValue(String name, int index, Object value)
indexed property supportvoid
setValue(String name, Object value)
Sets a property valueprotected int
size(String name)
-
Methods inherited from class org.glassfish.deployment.common.Descriptor
addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, print, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visit
-
Methods inherited from class org.glassfish.deployment.common.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
-
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
-
-
-
Field Detail
-
propListeners
protected PropertyChangeSupport propListeners
-
-
Constructor Detail
-
RuntimeDescriptor
public RuntimeDescriptor(RuntimeDescriptor other)
Creates a new instance of RuntimeDescriptor
-
RuntimeDescriptor
public RuntimeDescriptor()
Creates a new instance of RuntimeDescriptor
-
-
Method Detail
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener l)
Add a property listener for this bean- Parameters:
the
- property listener
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener l)
removes a property listener for this bean- Parameters:
the
- property listener to remove
-
addPropertyChangeListener
public void addPropertyChangeListener(String n, PropertyChangeListener l)
Add a property listener for a specific property name- Parameters:
the
- property namethe
- property listener
-
removePropertyChangeListener
public void removePropertyChangeListener(String n, PropertyChangeListener l)
Remover a property listener for specific property name- Parameters:
the
- property namethe
- property listener
-
setValue
public void setValue(String name, Object value)
Sets a property value- Parameters:
the
- property namethe
- property value
-
removeValue
protected void removeValue(String name, int index)
-
size
protected int size(String name)
-
setAttributeValue
public void setAttributeValue(String elementName, String attributeName, Object value)
-
setAttributeValue
public void setAttributeValue(String elementName, int index, String attributeName, Object value)
-
-