Class RelationType
java.lang.Object
de.hybris.bootstrap.typesystem.jaxb.RelationType
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Gets the value of the code property.A RelationType defines a n-m or 1-n relation between types.Gets the value of the content property.Gets the value of the deployment property.booleanGets the value of the autocreate property.booleanGets the value of the generate property.booleanGets the value of the localized property.voidsetAutocreate(Boolean value) Sets the value of the autocreate property.voidSets the value of the code property.voidsetDeployment(String value) Sets the value of the deployment property.voidsetGenerate(Boolean value) Sets the value of the generate property.voidsetLocalized(boolean value) Sets the value of the localized property.
-
Field Details
-
-
code
-
localized
protected boolean localized -
deployment
-
autocreate
-
generate
-
-
Constructor Details
-
RelationType
public RelationType()
-
-
Method Details
-
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
setmethod 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
Gets the value of the code property.- Returns:
- possible object is
String
-
setCode
Sets the value of the code property.- Parameters:
value- allowed object isString
-
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
Gets the value of the deployment property.- Returns:
- possible object is
String
-
setDeployment
Sets the value of the deployment property.- Parameters:
value- allowed object isString
-
isAutocreate
public boolean isAutocreate()Gets the value of the autocreate property.- Returns:
- possible object is
Boolean
-
setAutocreate
Sets the value of the autocreate property.- Parameters:
value- allowed object isBoolean
-
isGenerate
public boolean isGenerate()Gets the value of the generate property.- Returns:
- possible object is
Boolean
-
setGenerate
Sets the value of the generate property.- Parameters:
value- allowed object isBoolean
-