Class TrainBlockPartStructure

  • All Implemented Interfaces:
    Serializable

    public class TrainBlockPartStructure
    extends Object
    implements Serializable
    Type for BLOCK part elements of VEHICLE JOURNEY.

    Java class for TrainBlockPartStructure complex type.

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

     <complexType name="TrainBlockPartStructure">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="NumberOfBlockParts" type="{http://www.w3.org/2001/XMLSchema}positiveInteger"/>
             <element name="TrainPartRef" type="{http://www.siri.org.uk/siri}TrainPartRefStructure"/>
             <element name="PositionOfTrainBlockPart" type="{http://www.siri.org.uk/siri}NaturalLanguageStringStructure" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
         </restriction>
       </complexContent>
     </complexType>
     
    See Also:
    Serialized Form
    • Constructor Detail

      • TrainBlockPartStructure

        public TrainBlockPartStructure()
    • Method Detail

      • getNumberOfBlockParts

        public BigInteger getNumberOfBlockParts()
        Gets the value of the numberOfBlockParts property.
        Returns:
        possible object is BigInteger
      • setNumberOfBlockParts

        public void setNumberOfBlockParts​(BigInteger value)
        Sets the value of the numberOfBlockParts property.
        Parameters:
        value - allowed object is BigInteger
      • getPositionOfTrainBlockParts

        public List<NaturalLanguageStringStructure> getPositionOfTrainBlockParts()
        Gets the value of the positionOfTrainBlockParts 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 positionOfTrainBlockParts property.

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

            getPositionOfTrainBlockParts().add(newItem);
         

        Objects of the following type(s) are allowed in the list NaturalLanguageStringStructure