Class Context

  • Direct Known Subclasses:
    DefaultConfigurationCache.CachedContextImpl

    public class Context
    extends java.lang.Object

    Java class for context complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="context">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="context" type="{http://www.hybris.com/cockpit/config}context" minOccurs="0"/>
             <choice minOccurs="0">
               <any processContents='lax' namespace='##other'/>
             </choice>
           </sequence>
           <attribute name="merge" type="{http://www.hybris.com/cockpit/config}MergeAttrType" />
           <attribute name="parent" type="{http://www.w3.org/2001/XMLSchema}string" default="auto" />
           <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="principal" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="component" type="{http://www.w3.org/2001/XMLSchema}string" />
           <anyAttribute processContents='skip'/>
         </restriction>
       </complexContent>
     </complexType>
     
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Object any  
      protected java.lang.String component  
      protected java.util.List<Context> context  
      protected java.lang.String mergeBy  
      protected java.lang.String parent  
      protected java.lang.String principal  
      protected java.lang.String type  
    • Constructor Summary

      Constructors 
      Constructor Description
      Context()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterUnmarshal​(javax.xml.bind.Unmarshaller unmarshaller, java.lang.Object parentCtx)  
      boolean equals​(java.lang.Object o)  
      java.lang.Object getAny()
      Gets the value of the any property.
      java.lang.String getComponent()
      Gets the value of the component property.
      java.util.List<Context> getContext()
      Gets the value of the context property.
      java.lang.String getMergeBy()
      Gets the value of the mergeBy property.
      java.util.Map<javax.xml.namespace.QName,​java.lang.String> getOtherAttributes()
      Gets a map that contains attributes that aren't bound to any typed property on this class.
      java.lang.String getParent()
      Gets the value of the parent property.
      Context getParentContext()  
      java.lang.String getPrincipal()
      Gets the value of the principal property.
      java.lang.String getType()
      Gets the value of the type property.
      int hashCode()  
      void setAny​(java.lang.Object value)
      Sets the value of the any property.
      void setComponent​(java.lang.String value)
      Sets the value of the component property.
      void setMergeBy​(java.lang.String value)
      Sets the value of the mergeBy property.
      void setParent​(java.lang.String value)
      Sets the value of the parent property.
      void setParentContext​(Context parentContext)  
      void setPrincipal​(java.lang.String value)
      Sets the value of the principal property.
      void setType​(java.lang.String value)
      Sets the value of the type property.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • context

        protected java.util.List<Context> context
      • any

        protected java.lang.Object any
      • mergeBy

        protected java.lang.String mergeBy
      • parent

        protected java.lang.String parent
      • type

        protected java.lang.String type
      • principal

        protected java.lang.String principal
      • component

        protected java.lang.String component
    • Constructor Detail

      • Context

        public Context()
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getContext

        public java.util.List<Context> getContext()
        Gets the value of the context property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the context property.

        For example, to add a new item, do as follows:

         getContext().add(newItem);
         

        Objects of the following type(s) are allowed in the list Context

      • getAny

        public java.lang.Object getAny()
        Gets the value of the any property.
        Returns:
        possible object is Object Element
      • setAny

        public void setAny​(java.lang.Object value)
        Sets the value of the any property.
        Parameters:
        value - allowed object is Object Element
      • getMergeBy

        public java.lang.String getMergeBy()
        Gets the value of the mergeBy property.
        Returns:
        possible object is String
      • setMergeBy

        public void setMergeBy​(java.lang.String value)
        Sets the value of the mergeBy property.
        Parameters:
        value - allowed object is String
      • getParent

        public java.lang.String getParent()
        Gets the value of the parent property.
        Returns:
        possible object is String
      • setParent

        public void setParent​(java.lang.String value)
        Sets the value of the parent property.
        Parameters:
        value - allowed object is String
      • getType

        public java.lang.String getType()
        Gets the value of the type property.
        Returns:
        possible object is String
      • setType

        public void setType​(java.lang.String value)
        Sets the value of the type property.
        Parameters:
        value - allowed object is String
      • getPrincipal

        public java.lang.String getPrincipal()
        Gets the value of the principal property.
        Returns:
        possible object is String
      • setPrincipal

        public void setPrincipal​(java.lang.String value)
        Sets the value of the principal property.
        Parameters:
        value - allowed object is String
      • getComponent

        public java.lang.String getComponent()
        Gets the value of the component property.
        Returns:
        possible object is String
      • setComponent

        public void setComponent​(java.lang.String value)
        Sets the value of the component property.
        Parameters:
        value - allowed object is String
      • getOtherAttributes

        public java.util.Map<javax.xml.namespace.QName,​java.lang.String> getOtherAttributes()
        Gets a map that contains attributes that aren't bound to any typed property on this class.

        the map is keyed by the name of the attribute and the value is the string value of the attribute. the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.

        Returns:
        always non-null
      • getParentContext

        public Context getParentContext()
      • setParentContext

        public void setParentContext​(Context parentContext)
      • afterUnmarshal

        public void afterUnmarshal​(javax.xml.bind.Unmarshaller unmarshaller,
                                   java.lang.Object parentCtx)