public class ItemRelationType extends Object implements Serializable, Cloneable, org.jvnet.jaxb2_commons.lang.CopyTo
Java class for ItemRelationType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ItemRelationType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="direction">
<complexType>
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="source" type="{http://www.w3.org/2001/XMLSchema}string"/>
<element name="target" type="{http://www.w3.org/2001/XMLSchema}string"/>
</sequence>
<attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
</element>
<element name="value" maxOccurs="unbounded" minOccurs="0">
<complexType>
<simpleContent>
<extension base="<http://www.w3.org/2001/XMLSchema>string">
<attribute name="key" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
</extension>
</simpleContent>
</complexType>
</element>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Class and Description |
|---|---|
static class |
ItemRelationType.Direction
Java class for anonymous complex type.
|
static class |
ItemRelationType.Value
Java class for anonymous complex type.
|
| Modifier and Type | Field and Description |
|---|---|
protected ItemRelationType.Direction |
direction |
protected String |
id |
protected List<ItemRelationType.Value> |
value |
| Constructor and Description |
|---|
ItemRelationType() |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
Object |
copyTo(Object target) |
Object |
copyTo(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
Object target,
org.jvnet.jaxb2_commons.lang.CopyStrategy strategy) |
Object |
createNewInstance() |
ItemRelationType.Direction |
getDirection()
Gets the value of the direction property.
|
String |
getId()
Gets the value of the id property.
|
List<ItemRelationType.Value> |
getValue()
Gets the value of the value property.
|
boolean |
isSetDirection() |
boolean |
isSetId() |
boolean |
isSetValue() |
void |
setDirection(ItemRelationType.Direction value)
Sets the value of the direction property.
|
void |
setId(String value)
Sets the value of the id property.
|
void |
unsetValue() |
ItemRelationType |
withDirection(ItemRelationType.Direction value) |
ItemRelationType |
withId(String value) |
ItemRelationType |
withValue(Collection<ItemRelationType.Value> values) |
ItemRelationType |
withValue(ItemRelationType.Value... values) |
protected String id
protected ItemRelationType.Direction direction
protected List<ItemRelationType.Value> value
public void setId(String value)
value - allowed object is
Stringpublic boolean isSetId()
public ItemRelationType.Direction getDirection()
ItemRelationType.Directionpublic void setDirection(ItemRelationType.Direction value)
value - allowed object is
ItemRelationType.Directionpublic boolean isSetDirection()
public List<ItemRelationType.Value> getValue()
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 value property.
For example, to add a new item, do as follows:
getValue().add(newItem);
Objects of the following type(s) are allowed in the list
ItemRelationType.Value
public boolean isSetValue()
public void unsetValue()
public Object copyTo(Object target)
copyTo in interface org.jvnet.jaxb2_commons.lang.CopyTopublic Object copyTo(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, Object target, org.jvnet.jaxb2_commons.lang.CopyStrategy strategy)
copyTo in interface org.jvnet.jaxb2_commons.lang.CopyTopublic Object createNewInstance()
createNewInstance in interface org.jvnet.jaxb2_commons.lang.CopyTopublic ItemRelationType withId(String value)
public ItemRelationType withDirection(ItemRelationType.Direction value)
public ItemRelationType withValue(ItemRelationType.Value... values)
public ItemRelationType withValue(Collection<ItemRelationType.Value> values)
Copyright © 2015. All rights reserved.