Class CollectionValueType
- java.lang.Object
-
- com.helger.regrep.rim.ValueType
-
- com.helger.regrep.rim.CollectionValueType
-
- All Implemented Interfaces:
com.helger.commons.lang.IExplicitlyCloneable,Serializable,Cloneable
@CodingStyleguideUnaware public class CollectionValueType extends ValueType
A specialized ValueType that may be used as a container for a collection of elements where each element is a ValueType.Java class for CollectionValueType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CollectionValueType"> <complexContent> <extension base="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0}ValueType"> <sequence> <element name="Element" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0}ValueType" maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute name="collectionType" type="{urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0}objectReferenceType" default="urn:oasis:names:tc:ebxml-regrep:CollectionType:Bag" /> </extension> </complexContent> </complexType>This class was annotated by ph-jaxb-plugin -Xph-annotate
This class contains methods created by ph-jaxb-plugin -Xph-equalshashcode
This class contains methods created by ph-jaxb-plugin -Xph-tostring
This class contains methods created by ph-jaxb-plugin -Xph-list-extension
This class contains methods created by ph-jaxb-plugin -Xph-cloneable2
This class contains methods created by ph-jaxb-plugin -Xph-value-extender
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CollectionValueType()Default constructor
Note: automatically created by ph-jaxb-plugin -Xph-value-extender
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElement(ValueType elem)Created by ph-jaxb-plugin -Xph-list-extensionCollectionValueTypeclone()Created by ph-jaxb-plugin -Xph-cloneable2voidcloneTo(CollectionValueType ret)This method clones all values fromthisto the passed object.booleanequals(Object o)Created by ph-jaxb-plugin -Xph-equalshashcodeStringgetCollectionType()Gets the value of the collectionType property.List<ValueType>getElement()Gets the value of the element property.ValueTypegetElementAtIndex(int index)Created by ph-jaxb-plugin -Xph-list-extensionintgetElementCount()Created by ph-jaxb-plugin -Xph-list-extensionbooleanhasElementEntries()Created by ph-jaxb-plugin -Xph-list-extensioninthashCode()Created by ph-jaxb-plugin -Xph-equalshashcodebooleanhasNoElementEntries()Created by ph-jaxb-plugin -Xph-list-extensionvoidsetCollectionType(String value)Sets the value of the collectionType property.voidsetElement(List<ValueType> aList)Created by ph-jaxb-plugin -Xph-list-extensionStringtoString()Created by ph-jaxb-plugin -Xph-tostring
-
-
-
Method Detail
-
getElement
@Nonnull @ReturnsMutableObject("JAXB implementation style") public List<ValueType> getElement()
Gets the value of the element 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 Jakarta XML Binding object. This is why there is not a
setmethod for the element property.For example, to add a new item, do as follows:
getElement().add(newItem);Objects of the following type(s) are allowed in the list
ValueType- Returns:
- The value of the element property.
-
getCollectionType
@Nullable public String getCollectionType()
Gets the value of the collectionType property.- Returns:
- possible object is
String
-
setCollectionType
public void setCollectionType(@Nullable String value)
Sets the value of the collectionType property.- Parameters:
value- allowed object isString
-
equals
public boolean equals(Object o)
Created by ph-jaxb-plugin -Xph-equalshashcode
-
hashCode
public int hashCode()
Created by ph-jaxb-plugin -Xph-equalshashcode
-
toString
public String toString()
Created by ph-jaxb-plugin -Xph-tostring
-
setElement
public void setElement(@Nullable List<ValueType> aList)
Created by ph-jaxb-plugin -Xph-list-extension- Parameters:
aList- The new list member to set. May benull.
-
hasElementEntries
public boolean hasElementEntries()
Created by ph-jaxb-plugin -Xph-list-extension- Returns:
trueif at least one item is contained,falseotherwise.
-
hasNoElementEntries
public boolean hasNoElementEntries()
Created by ph-jaxb-plugin -Xph-list-extension- Returns:
trueif no item is contained,falseotherwise.
-
getElementCount
@Nonnegative public int getElementCount()
Created by ph-jaxb-plugin -Xph-list-extension- Returns:
- The number of contained elements. Always ≥ 0.
-
getElementAtIndex
@Nullable public ValueType getElementAtIndex(@Nonnegative int index) throws IndexOutOfBoundsException
Created by ph-jaxb-plugin -Xph-list-extension- Parameters:
index- The index to retrieve- Returns:
- The element at the specified index. May be
null - Throws:
IndexOutOfBoundsException- if the index is invalid!
-
addElement
public void addElement(@Nonnull ValueType elem)
Created by ph-jaxb-plugin -Xph-list-extension- Parameters:
elem- The element to be added. May not benull.
-
cloneTo
public void cloneTo(@Nonnull CollectionValueType ret)
This method clones all values fromthisto the passed object. All data in the parameter object is overwritten!Created by ph-jaxb-plugin -Xph-cloneable2- Parameters:
ret- The target object to clone to. May not benull.
-
clone
@Nonnull @ReturnsMutableCopy public CollectionValueType clone()
Created by ph-jaxb-plugin -Xph-cloneable2
-
-