Home » geronimo-2.2-source-release » org.apache.geronimo.naming.deployment.jsr88 » [javadoc | source]
public class: HasPattern [javadoc | source]

Direct Known Subclasses:
    MessageDestination, ResourceEnvRef, ResourceRef, GBeanLocator, EjbLocalRef, EjbRef

Represents an element in a Geronimo dployment plan that has a child of type Pattern. This handles patterns that are a member of a choice as well as singleton patterns.

Has 1 JavaBean Properties
- pattern (type Pattern)

Fields inherited from org.apache.geronimo.deployment.plugin.XmlBeanSupport:
 public HasPattern() 
 public HasPattern(XmlObject xmlObject) 
Method from org.apache.geronimo.naming.deployment.jsr88.HasPattern Summary:
clearNonPatternFromChoice,   clearPatternFromChoice,   findPattern,   getPattern,   setPattern
Methods from org.apache.geronimo.deployment.plugin.XmlBeanSupport:
addPropertyChangeListener,   configured,   fromXML,   getSchemaTypeLoader,   getXmlObject,   isEmpty,   removePropertyChangeListener,   setXmlObject,   toXML
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.geronimo.naming.deployment.jsr88.HasPattern Detail:
 protected  void clearNonPatternFromChoice() 
    Should be overridden to remove any non-pattern elements if this element has a pattern that's part of a choice. If this is called, it means a non-null Pattern is in the process of being set. This method should fire property change events on any elements it removes.
 protected  void clearPatternFromChoice() 
    Should be called to remove any pattern child element if the pattern is part of a choice and some other element in the choice was set to a non-null value. This will clear the pattern and send a property change event on the "pattern" property if the pattern was set.
 protected GerPatternType findPattern() 
    Gets the pattern child of this element, or null if there is none.
 public Pattern getPattern() 
    JavaBean getter for the Pattern property. Gets a JavaBean of type Pattern for the pattern child of this element, or null if there is no pattern child.
 public  void setPattern(Pattern group) 
    JavaBean setter for the Pattern property. Calls the helper clearNonPatternFromChoice if a non-null Pattern is set.