Class Context
- java.lang.Object
-
- com.hybris.cockpitng.core.config.impl.jaxb.Context
-
- Direct Known Subclasses:
DefaultConfigurationCache.CachedContextImpl
public class Context extends java.lang.ObjectJava 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.Objectanyprotected java.lang.Stringcomponentprotected java.util.List<Context>contextprotected java.lang.StringmergeByprotected java.lang.Stringparentprotected java.lang.Stringprincipalprotected java.lang.Stringtype
-
Constructor Summary
Constructors Constructor Description Context()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, java.lang.Object parentCtx)booleanequals(java.lang.Object o)java.lang.ObjectgetAny()Gets the value of the any property.java.lang.StringgetComponent()Gets the value of the component property.java.util.List<Context>getContext()Gets the value of the context property.java.lang.StringgetMergeBy()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.StringgetParent()Gets the value of the parent property.ContextgetParentContext()java.lang.StringgetPrincipal()Gets the value of the principal property.java.lang.StringgetType()Gets the value of the type property.inthashCode()voidsetAny(java.lang.Object value)Sets the value of the any property.voidsetComponent(java.lang.String value)Sets the value of the component property.voidsetMergeBy(java.lang.String value)Sets the value of the mergeBy property.voidsetParent(java.lang.String value)Sets the value of the parent property.voidsetParentContext(Context parentContext)voidsetPrincipal(java.lang.String value)Sets the value of the principal property.voidsetType(java.lang.String value)Sets the value of the type property.
-
-
-
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
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.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
setmethod 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
ObjectElement
-
setAny
public void setAny(java.lang.Object value)
Sets the value of the any property.- Parameters:
value- allowed object isObjectElement
-
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 isString
-
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 isString
-
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 isString
-
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 isString
-
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 isString
-
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)
-
-