Class RelationType

java.lang.Object
de.hybris.bootstrap.typesystem.jaxb.RelationType

public class RelationType extends Object
A RelationType defines a n-m or 1-n relation between types.

Java class for relationType complex type.

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

 <complexType name="relationType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="deployment" type="{}deploymentType" minOccurs="0"/>
         <element name="sourceElement" type="{}relationElementType"/>
         <element name="targetElement" type="{}relationElementType"/>
       </sequence>
       <attribute name="code" use="required" type="{}codeType" />
       <attribute name="localized" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
       <attribute name="deployment" type="{}deploymentRefType" />
       <attribute name="autocreate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="generate" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

    • content

      protected List<Serializable> content
    • code

      protected String code
    • localized

      protected boolean localized
    • deployment

      protected String deployment
    • autocreate

      protected Boolean autocreate
    • generate

      protected Boolean generate
  • Constructor Details

    • RelationType

      public RelationType()
  • Method Details

    • getContent

      public List<Serializable> getContent()
      A RelationType defines a n-m or 1-n relation between types.Gets the value of the content 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 content property.

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

       getContent().add(newItem);
       

      Objects of the following type(s) are allowed in the list JAXBElement<DeploymentType > JAXBElement<RelationElementType> JAXBElement< String> JAXBElement<RelationElementType> String

    • getCode

      public String getCode()
      Gets the value of the code property.
      Returns:
      possible object is String
    • setCode

      public void setCode(String value)
      Sets the value of the code property.
      Parameters:
      value - allowed object is String
    • isLocalized

      public boolean isLocalized()
      Gets the value of the localized property.
    • setLocalized

      public void setLocalized(boolean value)
      Sets the value of the localized property.
    • getDeployment

      public String getDeployment()
      Gets the value of the deployment property.
      Returns:
      possible object is String
    • setDeployment

      public void setDeployment(String value)
      Sets the value of the deployment property.
      Parameters:
      value - allowed object is String
    • isAutocreate

      public boolean isAutocreate()
      Gets the value of the autocreate property.
      Returns:
      possible object is Boolean
    • setAutocreate

      public void setAutocreate(Boolean value)
      Sets the value of the autocreate property.
      Parameters:
      value - allowed object is Boolean
    • isGenerate

      public boolean isGenerate()
      Gets the value of the generate property.
      Returns:
      possible object is Boolean
    • setGenerate

      public void setGenerate(Boolean value)
      Sets the value of the generate property.
      Parameters:
      value - allowed object is Boolean