FileDocCategorySizeDatePackage
DeploymentExtensionDescriptor.javaAPI DocGlassfish v2 API4305Fri May 04 22:31:20 BST 2007com.sun.enterprise.deployment

DeploymentExtensionDescriptor

public class DeploymentExtensionDescriptor extends Observable implements Serializable
This class contains all the information for the deployment extension elements found in deployment descriptors since J2EE 1.4
author
Jerome Dochez

Fields Summary
String
nameSpace
boolean
mustUnderstand
Vector
elements
Constructors Summary
public DeploymentExtensionDescriptor()
Creates a new instance of DeploymentExtensionDescriptor

    
           
      
        elements = new Vector();
    
Methods Summary
public voidaddElement(ExtensionElementDescriptor newElement)
Add a deployment extension element to his deployment extension

param
the new deployment extension

        elements.add(newElement);
        changed();
    
private voidchanged()
notify our observers we have changed

        setChanged();
        notifyObservers();
    
public java.util.Iteratorelements()

return
an iterator on all the deployment extension elements

        return elements.iterator();
    
public booleangetMustUnderstand()

return
true if this deployment extension must be understood

        return mustUnderstand;
    
public java.lang.StringgetNameSpace()

return
the namespace for this deployment extension

        return nameSpace;
    
public voidprint(java.lang.StringBuffer toStringBuffer)

return
a meaningful string about myself

        toStringBuffer.append("namespace ").append(nameSpace);
        toStringBuffer.append("\nmustUnderstand = ").append(mustUnderstand);
        for(Iterator itr = elements();itr.hasNext();) {
            toStringBuffer.append("\nelement = ").append(itr.next());
        }
    
public voidsetMustUnderstand(boolean mustUnderstand)
Sets the mustUnderstand flag

        this.mustUnderstand = mustUnderstand;
        changed();
    
public voidsetNameSpace(java.lang.String nameSpace)
Sets the namespace for this deployment entension

param
the namespace

        this.nameSpace = nameSpace;
        changed();