org.apache.geronimo.naming.deployment.jsr88
Class HasPattern

java.lang.Object
  extended by org.apache.geronimo.deployment.plugin.XmlBeanSupport
      extended by org.apache.geronimo.naming.deployment.jsr88.HasPattern
Direct Known Subclasses:
EjbLocalRef, EjbRef, GBeanLocator, ResourceEnvRef, ResourceRef

public class HasPattern
extends XmlBeanSupport

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)


Field Summary
 
Fields inherited from class org.apache.geronimo.deployment.plugin.XmlBeanSupport
pcs
 
Constructor Summary
HasPattern()
           
HasPattern(org.apache.xmlbeans.XmlObject xmlObject)
           
 
Method Summary
protected  void clearNonPatternFromChoice()
          Should be overridden to remove any non-pattern elements if this element has a pattern that's part of a choice.
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.
protected  org.apache.geronimo.xbeans.geronimo.naming.GerPatternType findPattern()
          Gets the pattern child of this element, or null if there is none.
 Pattern getPattern()
          JavaBean getter for the Pattern property.
 void setPattern(Pattern group)
          JavaBean setter for the Pattern property.
 
Methods inherited from class org.apache.geronimo.deployment.plugin.XmlBeanSupport
addPropertyChangeListener, configured, fromXML, getSchemaTypeLoader, getXmlObject, isEmpty, removePropertyChangeListener, setXmlObject, toXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HasPattern

public HasPattern()

HasPattern

public HasPattern(org.apache.xmlbeans.XmlObject xmlObject)
Method Detail

getPattern

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.


setPattern

public void setPattern(Pattern group)
JavaBean setter for the Pattern property. Calls the helper clearNonPatternFromChoice if a non-null Pattern is set.


clearNonPatternFromChoice

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.


clearPatternFromChoice

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.


findPattern

protected org.apache.geronimo.xbeans.geronimo.naming.GerPatternType findPattern()
Gets the pattern child of this element, or null if there is none.



Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.