From e023e674020f1a435f7b8c8b9276704f576ea6e5 Mon Sep 17 00:00:00 2001 From: CGantert345 <57003061+CGantert345@users.noreply.github.com> Date: Mon, 29 Mar 2021 14:08:45 +0200 Subject: structure change 1 --- .../ticket/api/impl/SimpleStationPassage.java | 296 +++++++++++++++++++++ 1 file changed, 296 insertions(+) create mode 100644 src/main/java/org/uic/barcode/ticket/api/impl/SimpleStationPassage.java (limited to 'src/main/java/org/uic/barcode/ticket/api/impl/SimpleStationPassage.java') diff --git a/src/main/java/org/uic/barcode/ticket/api/impl/SimpleStationPassage.java b/src/main/java/org/uic/barcode/ticket/api/impl/SimpleStationPassage.java new file mode 100644 index 0000000..eaf300b --- /dev/null +++ b/src/main/java/org/uic/barcode/ticket/api/impl/SimpleStationPassage.java @@ -0,0 +1,296 @@ +/* + * + */ +package org.uic.barcode.ticket.api.impl; + +import java.util.Collection; +import java.util.Date; +import java.util.LinkedHashSet; + +import org.uic.barcode.ticket.api.spec.IExtension; +import org.uic.barcode.ticket.api.spec.IStationCodeTable; +import org.uic.barcode.ticket.api.spec.IStationPassage; + + +/** + * The Class SimpleStationPassage. + */ +public class SimpleStationPassage extends SimpleDocumentData implements IStationPassage { + + /** The reference. */ + protected String reference; + + /** The product name. */ + protected String productName; + + /** The product type. */ + protected String productId; + + /** The product owner. */ + protected String productOwner; + + /** The valid from. */ + protected Date validFrom; + + /** The valid until. */ + protected Date validUntil; + + /** The station code table. */ + protected IStationCodeTable stationCodeTable = IStationCodeTable.stationUIC; + + /** The station name. */ + protected String stationName; + + /** The number ofdays allowed. */ + protected int numberOfdaysAllowed; + + /** The stations. */ + protected Collection stations = new LinkedHashSet(); + + /** The station names. */ + protected Collection stationNames = new LinkedHashSet(); + + + /** The extension data. */ + protected IExtension extensionData; + + + /** The area codes. */ + protected Collection areaCodes = new LinkedHashSet(); + + /** The area names. */ + protected Collection areaNames = new LinkedHashSet(); + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#getReference() + */ + public String getReference() { + return reference; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#setReference(java.lang.String) + */ + public void setReference(String reference) { + this.reference = reference; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#getProductName() + */ + public String getProductName() { + return productName; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#setProductName(java.lang.String) + */ + public void setProductName(String name) { + this.productName = name; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#getProductType() + */ + public String getProductId() { + return productId; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#setProductType(int) + */ + public void setProductId(String id) { + this.productId = id; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#getProductOwner() + */ + public String getProductOwner() { + return productOwner; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#setProductOwner(java.lang.String) + */ + public void setProductOwner(String productOwner) { + this.productOwner = productOwner; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#getValidFrom() + */ + public Date getValidFrom() { + return validFrom; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#setValidFrom(java.util.Date) + */ + public void setValidFrom(Date validFrom) { + this.validFrom = validFrom; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#getValidUntil() + */ + public Date getValidUntil() { + return validUntil; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#setValidUntil(java.util.Date) + */ + public void setValidUntil(Date validUntil) { + this.validUntil = validUntil; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#getStationCodeTable() + */ + public IStationCodeTable getStationCodeTable() { + return stationCodeTable; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#setStationCodeTable(org.uic.ticket.api.asn.om.CodeTableType) + */ + public void setStationCodeTable(IStationCodeTable stationCodeTable) { + this.stationCodeTable = stationCodeTable; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#getStations() + */ + public Collection getStations() { + return stations; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#addStation(java.lang.String) + */ + public void addStation(String station) { + this.stations.add(station); + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#addStationName(java.lang.String) + */ + public void addStationName(String name) { + this.stationNames.add(name); + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#getStationNames() + */ + public Collection getStationNames() { + return stationNames; + } + + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#getNumberOfdaysAllowed() + */ + public int getNumberOfdaysAllowed() { + return numberOfdaysAllowed; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#setNumberOfdaysAllowed(int) + */ + public void setNumberOfdaysAllowed(int numberOfdaysAllowed) { + this.numberOfdaysAllowed = numberOfdaysAllowed; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#getExtension() + */ + @Override + public IExtension getExtension() { + return extensionData; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#setExtension(org.uic.ticket.api.spec.IExtension) + */ + @Override + public void setExtension(IExtension extensionData) { + this.extensionData = extensionData; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#getAreaCodes() + */ + @Override + public Collection getAreaCodes() { + return areaCodes; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#getAreaNames() + */ + @Override + public Collection getAreaNames() { + return areaNames; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#addAreaCode(java.lang.String) + */ + @Override + public void addAreaCode(String code) { + areaCodes.add(code); + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#addAreaName(java.lang.String) + */ + @Override + public void addAreaName(String name) { + areaNames.add(name); + } + + + /** The valid from utc coffset. */ + protected Long validFromUTCoffset; + + /** The valid until utc coffset. */ + protected Long validUntilUTCoffset; + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#getValidFromUTCoffset() + */ + public Long getValidFromUTCoffset() { + return validFromUTCoffset; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#setValidFromUTCoffset(java.lang.Long) + */ + public void setValidFromUTCoffset(Long validFromUTCoffset) { + this.validFromUTCoffset = validFromUTCoffset; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#getValidUntilUTCoffset() + */ + public Long getValidUntilUTCoffset() { + return validUntilUTCoffset; + } + + /* (nicht-Javadoc) + * @see org.uic.ticket.api.spec.IStationPassage#setValidUntilUTCoffset(java.lang.Long) + */ + public void setValidUntilUTCoffset(Long validUntilUTCoffset) { + this.validUntilUTCoffset = validUntilUTCoffset; + } + + @Override + public void setUntilDate(Date date) { + // TODO Automatisch generierter Methodenstub + this.validUntil = date; + } + + + +} -- cgit v1.2.3