com.sun.enterprise.deployment
Class ExtensionElementDescriptor

java.lang.Object
  extended by java.util.Observable
      extended by com.sun.enterprise.deployment.DynamicAttributesDescriptor
          extended by com.sun.enterprise.deployment.Descriptor
              extended by com.sun.enterprise.deployment.ExtensionElementDescriptor
All Implemented Interfaces:
java.io.Serializable, java.util.Observer

public class ExtensionElementDescriptor
extends Descriptor
implements java.util.Observer

This class contains the deployment extensions element for a particular xml node. It can contains sub elements (other ExtensionElementDescriptor instances) or final leafs like attribute or string elements.

Author:
Jerome Dochez
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
 
Constructor Summary
ExtensionElementDescriptor()
           
 
Method Summary
 void addElement(java.lang.String elementName, java.lang.Object value)
           
 DynamicAttributesDescriptor getAttributes()
           
 java.lang.Object getElement(java.lang.String elementName)
           
 java.util.Iterator getElementNames()
           
 boolean hasAttributes()
           
 void print(java.lang.StringBuffer toStringBuffer)
          A String representation of this object.
 void update(java.util.Observable o, java.lang.Object arg)
          notification of changed from our attributes/elements storage
 
Methods inherited from class com.sun.enterprise.deployment.Descriptor
addDeploymentExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visit
 
Methods inherited from class com.sun.enterprise.deployment.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExtensionElementDescriptor

public ExtensionElementDescriptor()
Method Detail

getElementNames

public java.util.Iterator getElementNames()
Returns:
the value holder for all sub elements of this deployment extension element

addElement

public void addElement(java.lang.String elementName,
                       java.lang.Object value)

getElement

public java.lang.Object getElement(java.lang.String elementName)

getAttributes

public DynamicAttributesDescriptor getAttributes()
Returns:
a value holder for all attributes of this deployment extension elements

hasAttributes

public boolean hasAttributes()
Returns:
true if the deployment extension contains attributes

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
notification of changed from our attributes/elements storage

Specified by:
update in interface java.util.Observer

print

public void print(java.lang.StringBuffer toStringBuffer)
Description copied from class: Descriptor
A String representation of this object.

Overrides:
print in class Descriptor


Copyright © 2012 GlassFish Community. All Rights Reserved.