Class BaseHK2JAXBBean

java.lang.Object
org.glassfish.hk2.xml.jaxb.internal.BaseHK2JAXBBean
All Implemented Interfaces:
Serializable, XmlHk2ConfigurationBean

public abstract class BaseHK2JAXBBean extends Object implements XmlHk2ConfigurationBean, Serializable
Author:
jwells
See Also:
  • Field Details

  • Constructor Details

    • BaseHK2JAXBBean

      public BaseHK2JAXBBean()
      For JAXB and Serialization
  • Method Details

    • _setProperty

      public void _setProperty(String propName, Object propValue)
      Description copied from interface: XmlHk2ConfigurationBean
      Will set the corresponding property of this bean to the given value in the default name space. Care should be taken that the propName is one of the properties of this bean
      Specified by:
      _setProperty in interface XmlHk2ConfigurationBean
      Parameters:
      propName - The non-null name of a property on this bean to set
      propValue - The possibly null value the property should take. May not be null if this property represents some scalar value
    • _setProperty

      public void _setProperty(String propNamespace, String propName, Object propValue)
      Description copied from interface: XmlHk2ConfigurationBean
      Will set the corresponding property of this bean to the given value. Care should be taken that the propName is one of the properties of this bean
      Specified by:
      _setProperty in interface XmlHk2ConfigurationBean
      Parameters:
      propNamespace - The non-null name space of this property
      propName - The non-null name of a property on this bean to set
      propValue - The possibly null value the property should take. May not be null if this property represents some scalar value
    • _setProperty

      public void _setProperty(String propNamespace, String propName, Object propValue, boolean changeInHub)
    • _setProperty

      public void _setProperty(QName qName, Object propValue)
    • _setProperty

      public void _setProperty(QName qName, Object propValue, boolean changeInHub)
    • _setProperty

      public void _setProperty(String propNamespace, String propName, Object propValue, boolean changeInHub, boolean rawSet)
    • _setProperty

      public void _setProperty(String propNamespace, String propName, byte propValue)
    • _setProperty

      public void _setProperty(String propNamespace, String propName, boolean propValue)
    • _setProperty

      public void _setProperty(String propNamespace, String propName, char propValue)
    • _setProperty

      public void _setProperty(String propNamespace, String propName, short propValue)
    • _setProperty

      public void _setProperty(String propNamespace, String propName, int propValue)
    • _setProperty

      public void _setProperty(String propNamespace, String propName, float propValue)
    • _setProperty

      public void _setProperty(String propNamespace, String propName, long propValue)
    • _setProperty

      public void _setProperty(String propNamespace, String propName, double propValue)
    • _getProperty

      public Object _getProperty(QName qName)
    • _getProperty

      public Object _getProperty(String propNamespace, String propName)
      Called by proxy
      Specified by:
      _getProperty in interface XmlHk2ConfigurationBean
      Parameters:
      propName - Property of child or non-child element or attribute
      propNamespace - the non-null name space name
      Returns:
      Value
    • _getProperty

      public Object _getProperty(String propName)
      Description copied from interface: XmlHk2ConfigurationBean
      Gets the property with the given name from the default name space. Defaulting will happen
      Specified by:
      _getProperty in interface XmlHk2ConfigurationBean
      Parameters:
      propName - The property with the given name
      Returns:
      The value of this property or the default value if not set
    • _getPropertyZ

      public boolean _getPropertyZ(String propNamespace, String propName)
      Called by proxy
      Parameters:
      propName -
      Returns:
    • _getPropertyB

      public byte _getPropertyB(String propNamespace, String propName)
      Called by proxy
      Parameters:
      propName -
      Returns:
    • _getPropertyC

      public char _getPropertyC(String propNamespace, String propName)
      Called by proxy
      Parameters:
      propName -
      Returns:
    • _getPropertyS

      public short _getPropertyS(String propNamespace, String propName)
      Called by proxy
      Parameters:
      propName -
      Returns:
    • _getPropertyI

      public int _getPropertyI(String propNamespace, String propName)
      Called by proxy
      Parameters:
      propName -
      Returns:
    • _getPropertyF

      public float _getPropertyF(String propNamespace, String propName)
      Called by proxy
      Parameters:
      propName -
      Returns:
    • _getPropertyJ

      public long _getPropertyJ(String propNamespace, String propName)
      Called by proxy
      Parameters:
      propName -
      Returns:
    • _getPropertyD

      public double _getPropertyD(String propNamespace, String propName)
      Called by proxy
      Parameters:
      propName -
      Returns:
    • _lookupChild

      public Object _lookupChild(String propName, String keyValue)
      Description copied from interface: XmlHk2ConfigurationBean
      Looks up the child with the given propertyName that has the given key value. Will only search the default namespace
      Specified by:
      _lookupChild in interface XmlHk2ConfigurationBean
      Parameters:
      propName - The non-null property name to look for
      keyValue - The non-null keyValue to look for
      Returns:
      The child or null if not found
    • _lookupChild

      public Object _lookupChild(String propNamespace, String propName, String keyValue)
      Description copied from interface: XmlHk2ConfigurationBean
      Looks up the child with the given propertyName that has the given key value
      Specified by:
      _lookupChild in interface XmlHk2ConfigurationBean
      Parameters:
      propNamespace - The namespace to find the property in. If null then the default namespace
      propName - The non-null property name to look for
      keyValue - The non-null keyValue to look for
      Returns:
      The child or null if not found
    • _doAdd

      public Object _doAdd(String propNamespace, String childProperty, Object rawChild, String childKey, int index)
    • _doAdd

      public Object _doAdd(String propNamespace, String childProperty, Object rawChild, String childKey, int index, boolean changeList)
    • _invokeCustomizedMethod

      public Object _invokeCustomizedMethod(String methodName, Class<?>[] params, Object[] values)
    • _invokeCustomizedMethodI

      public int _invokeCustomizedMethodI(String methodName, Class<?>[] params, Object[] values)
    • _invokeCustomizedMethodJ

      public long _invokeCustomizedMethodJ(String methodName, Class<?>[] params, Object[] values)
    • _invokeCustomizedMethodZ

      public boolean _invokeCustomizedMethodZ(String methodName, Class<?>[] params, Object[] values)
    • _invokeCustomizedMethodB

      public byte _invokeCustomizedMethodB(String methodName, Class<?>[] params, Object[] values)
    • _invokeCustomizedMethodC

      public char _invokeCustomizedMethodC(String methodName, Class<?>[] params, Object[] values)
    • _invokeCustomizedMethodS

      public short _invokeCustomizedMethodS(String methodName, Class<?>[] params, Object[] values)
    • _invokeCustomizedMethodF

      public float _invokeCustomizedMethodF(String methodName, Class<?>[] params, Object[] values)
    • _invokeCustomizedMethodD

      public double _invokeCustomizedMethodD(String methodName, Class<?>[] params, Object[] values)
    • _doRemove

      public Object _doRemove(String propNamespace, String childProperty, String childKey, int index, Object child)
    • _doRemove

      public Object _doRemove(String propNamespace, String childProperty, String childKey, int index, Object child, boolean changeList)
    • _doRemoveZ

      public boolean _doRemoveZ(String propNamespace, String childProperty, String childKey, int index, Object child)
    • _hasProperty

      public boolean _hasProperty(String propNamespace, String propName)
    • _getBeanLikeMap

      public Map<String,Object> _getBeanLikeMap()
      Description copied from interface: XmlHk2ConfigurationBean
      Returns a read-only copy of the bean-like map corresponding to the current state of this bean in the default namespace of the document
      Specified by:
      _getBeanLikeMap in interface XmlHk2ConfigurationBean
      Returns:
      A copy of the bean-like map associated with this bean
    • _getQNameMap

      public Map<QName,Object> _getQNameMap()
    • _getParent

      public XmlHk2ConfigurationBean _getParent()
      Description copied from interface: XmlHk2ConfigurationBean
      Returns the parent of this bean, or null if this object is the root of the true
      Specified by:
      _getParent in interface XmlHk2ConfigurationBean
      Returns:
      The parent of this object, or null if this is the root of the tree
    • _setParent

      public void _setParent(XmlHk2ConfigurationBean parent)
      When this is called all of the parents can be found and so the namespaces can be determined
      Parameters:
      parent -
    • _setSelfXmlTag

      public void _setSelfXmlTag(String selfNamespace, String selfXmlTag)
    • _getSelfNamespace

      public String _getSelfNamespace()
    • _getSelfXmlTag

      public String _getSelfXmlTag()
    • _getXmlPath

      public String _getXmlPath()
      Description copied from interface: XmlHk2ConfigurationBean
      Returns the XmlPath for this object
      Specified by:
      _getXmlPath in interface XmlHk2ConfigurationBean
      Returns:
      The XmlPath for this object
    • _setInstanceName

      public void _setInstanceName(String name)
    • _getInstanceName

      public String _getInstanceName()
      Description copied from interface: XmlHk2ConfigurationBean
      Returns the instance path/name for this object
      Specified by:
      _getInstanceName in interface XmlHk2ConfigurationBean
      Returns:
      The instance path/name for this object
    • _setKeyValue

      public void _setKeyValue(String key)
    • _getKeyPropertyName

      public QName _getKeyPropertyName()
      Description copied from interface: XmlHk2ConfigurationBean
      Returns the name of the property that returns the key for this bean, or null if this bean does not have a key property
      Specified by:
      _getKeyPropertyName in interface XmlHk2ConfigurationBean
      Returns:
      The name of the key property for this bean or null if this bean does not have a key property
    • _setClassReflectionHelper

      public void _setClassReflectionHelper(ClassReflectionHelper helper)
    • _getKeyValue

      public String _getKeyValue()
      Description copied from interface: XmlHk2ConfigurationBean
      Returns the key value for this object
      Specified by:
      _getKeyValue in interface XmlHk2ConfigurationBean
      Returns:
      The instance path/name for this object
    • _setDynamicChangeInfo

      public void _setDynamicChangeInfo(XmlRootHandleImpl<?> root, DynamicChangeInfo<?> change)
    • _setDynamicChangeInfo

      public void _setDynamicChangeInfo(XmlRootHandleImpl<?> root, DynamicChangeInfo<?> change, boolean doXmlPathCalculation)
      Once this is set the dynamic change protocol is in effect, and all paths can be calculated
      Parameters:
      change - The change control object
      doXmlPathCalculation - if true then this should calculate the xml path at this time (all the parent information must be correct). If this is false it is assumed that this is some sort of copy operation where the xmlPath has been pre-calculated and does not need to be modified
    • _setActive

      public void _setActive()
      Once this has been set the bean is considered active, and so defaulting can happen on the bean
    • _getChildrenXmlTags

      public Set<QName> _getChildrenXmlTags()
      Read lock must be held
      Returns:
      The set of all children tags
    • _shallowCopyFrom

      public void _shallowCopyFrom(BaseHK2JAXBBean copyMe, boolean copyReferences)
      This copy method ONLY copies non-child and non-parent and optionally reference fields and so is not a full copy. The children and parent and reference and lock information need to be filled in later so as not to have links from one tree into another. The read lock of copyMe should be held
      Parameters:
      copyMe - The non-null bean to copy FROM
    • _changeInHub

      public boolean _changeInHub(String propNamespace, String propName, Object propValue, WriteableBeanDatabase wbd)
      Called under write lock
      Parameters:
      propName - The name of the property to change
      propValue - The new value of the property
    • _changeInHub

      public boolean _changeInHub(List<PropertyChangeEvent> events, WriteableBeanDatabase wbd)
      Called under write lock
      Parameters:
      propName - The name of the property to change
      propValue - The new value of the property
    • _getChangeControl

      public DynamicChangeInfo<?> _getChangeControl()
      Gets the change control information for this bean
      Returns:
      the change control information for this bean
    • _getClassReflectionHelper

      public ClassReflectionHelper _getClassReflectionHelper()
      Returns the reflection helper for this bean
      Returns:
      The reflection helper for this bean
    • _setSelfDescriptor

      public void _setSelfDescriptor(ActiveDescriptor<?> selfDescriptor)
    • _getSelfDescriptor

      public ActiveDescriptor<?> _getSelfDescriptor()
      Description copied from interface: XmlHk2ConfigurationBean
      Gets the descriptor with which this service was created. May be null if this service is not advertised in a ServiceLocator
      Specified by:
      _getSelfDescriptor in interface XmlHk2ConfigurationBean
      Returns:
      The descriptor with which this service was created or null if this service is not advertised in a ServiceLocator
    • __activateChange

      public void __activateChange()
      Write lock must be held
    • __rollbackChange

      public void __rollbackChange()
      Write lock must be held
    • _getRoot

      public XmlRootHandle<?> _getRoot()
      Gets the root associated with this bean. If this bean has no associated root this will return null
      Specified by:
      _getRoot in interface XmlHk2ConfigurationBean
      Returns:
      The root of this bean, or null if this bean is not associated with a root
    • _isSet

      public boolean _isSet(String propName)
      Description copied from interface: XmlHk2ConfigurationBean
      Returns true if the given property is explicitly set, false if the property has not been explicitly set. Will only check the default namespace
      Specified by:
      _isSet in interface XmlHk2ConfigurationBean
      Parameters:
      propName - The name of the property to check for being set, may not be null
      Returns:
      true if the property is explicitly set, false if the property is not explicitly set
    • _isSet

      public boolean _isSet(String propNamespace, String propName)
      Description copied from interface: XmlHk2ConfigurationBean
      Returns true if the given property is explicitly set, false if the property has not been explicitly set
      Specified by:
      _isSet in interface XmlHk2ConfigurationBean
      Parameters:
      propNamespace - The namespace to find the property in. If null then the default namespace
      propName - The name of the property to check for being set, may not be null
      Returns:
      true if the property is explicitly set, false if the property is not explicitly set
    • __setAddCost

      public void __setAddCost(int addCost)
    • __getAddCost

      public int __getAddCost()
    • __fixAlias

      public void __fixAlias(String propNamespace, String propName, String baseName)
    • toString

      public String toString()
      Overrides:
      toString in class Object