
com.foursoft.vecmodel.vec113.VecPinCurrentInformation Maven / Gradle / Ivy
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2021.08.10 at 09:49:21 AM UTC
//
package com.foursoft.vecmodel.vec113;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import com.foursoft.vecmodel.vec113.visitor.Visitable;
import com.foursoft.vecmodel.vec113.visitor.Visitor;
import com.foursoft.xml.ExtendedUnmarshaller;
import com.foursoft.xml.annotations.XmlParent;
import com.foursoft.xml.model.Identifiable;
import com.foursoft.xml.model.ModifiableIdentifiable;
/**
* Allows the definition of currents for a pin of an EEComponent. A current can be further specified by a duration. Attributes of the type PinCurrentInformation normally have the multiplicity [0..*]. This means that such an attribute can have PinCurrentInformation entries for different types and durations. It must not have multiple entries for the same type and duration.
*
* Java class for PinCurrentInformation complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="PinCurrentInformation">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Type" type="{http://www.prostep.org/ecad-if/2011/vec}PinCurrentType"/>
* <element name="Current" type="{http://www.prostep.org/ecad-if/2011/vec}NumericalValue"/>
* <element name="Timing" type="{http://www.prostep.org/ecad-if/2011/vec}PinTiming" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PinCurrentInformation", propOrder = {
"type",
"current",
"timings"
})
public class VecPinCurrentInformation implements Serializable, Visitable, Identifiable, ModifiableIdentifiable
{
private final static long serialVersionUID = 1L;
/**
* Defines the type of the current.
*
*/
@XmlElement(name = "Type", required = true)
protected String type;
/**
* The current of the pin.
*
*/
@XmlElement(name = "Current", required = true)
protected VecNumericalValue current;
/**
* Specifies the timing of thePinCurrentInformation.
*
*
*/
@XmlElement(name = "Timing")
protected List timings;
@XmlAttribute(name = "id", required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String xmlId;
@XmlTransient
@XmlParent
private VecPinComponentBehavior parentPinComponentBehavior;
/**
* Gets the value of the type property.
*
*
Defines the type of the current.
*
* @return
* possible object is
* {@link String }
*
*/
public String getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link String }
*
* @see #getType()
*/
public void setType(String value) {
this.type = value;
}
/**
* Gets the value of the current property.
*
*
The current of the pin.
*
* @return
* possible object is
* {@link VecNumericalValue }
*
*/
public VecNumericalValue getCurrent() {
return current;
}
/**
* Sets the value of the current property.
*
* @param value
* allowed object is
* {@link VecNumericalValue }
*
* @see #getCurrent()
*/
public void setCurrent(VecNumericalValue value) {
this.current = value;
}
/**
* Gets the value of the timings 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 timings property.
*
*
* For example, to add a new item, do as follows:
*
* getTimings().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link VecPinTiming }
*
*
*
Specifies the timing of thePinCurrentInformation.
*
*
*/
public List getTimings() {
if (timings == null) {
timings = new ArrayList();
}
return this.timings;
}
/**
* Gets the value of the xmlId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getXmlId() {
return xmlId;
}
/**
* Sets the value of the xmlId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setXmlId(String value) {
this.xmlId = value;
}
/**
* Gets a reference to the parent of this object in the XML DOM Tree. If this class can have different parents in DOM, this property is initialized with the parent, if the parent is a {@link VecPinComponentBehavior } otherwise it will be null
* Warning!: This is a readonly property! It has to be initialized during the unmarshalling process by the {@link ExtendedUnmarshaller }.
This property is consistent to the state of object model at the time of unmarshalling. It does not reflect any changes done in the object model after the unmarshalling.
* This property has no effect when the object is marshalled to xml.
*
*/
public VecPinComponentBehavior getParentPinComponentBehavior() {
return parentPinComponentBehavior;
}
publicR accept(Visitor aVisitor)
throws E
{
return aVisitor.visitVecPinCurrentInformation(this);
}
@Override public String toString() { return this.getClass().getSimpleName() + "["
+ this.getXmlId() + "]"; }
}