From 425bd35c736b7e1c0dbe5b3f9162e195b3be6018 Mon Sep 17 00:00:00 2001 From: CGantert345 <57003061+CGantert345@users.noreply.github.com> Date: Thu, 25 Feb 2021 11:02:26 +0100 Subject: - bug fix on TicketType Enum - duplicate function getDocument removed - issuedOnLine null value allowed - maven install added (required renaming of some packages) --- src/org/uic/ticket/api/impl/SimpleFipTicket.java | 218 ----------------------- 1 file changed, 218 deletions(-) delete mode 100644 src/org/uic/ticket/api/impl/SimpleFipTicket.java (limited to 'src/org/uic/ticket/api/impl/SimpleFipTicket.java') diff --git a/src/org/uic/ticket/api/impl/SimpleFipTicket.java b/src/org/uic/ticket/api/impl/SimpleFipTicket.java deleted file mode 100644 index 42cb25b..0000000 --- a/src/org/uic/ticket/api/impl/SimpleFipTicket.java +++ /dev/null @@ -1,218 +0,0 @@ -/* - * - */ -package org.uic.ticket.api.impl; - -import java.util.Collection; -import java.util.Date; - -import java.util.LinkedHashSet; - -import org.uic.ticket.api.spec.IExtension; -import org.uic.ticket.api.spec.IFipTicket; -import org.uic.ticket.api.spec.ITravelClassType; - - -// TODO: Auto-generated Javadoc -/** - * The Class SimpleFipTicket. - */ -public class SimpleFipTicket extends SimpleDocumentData implements IFipTicket { - - - /** The reference. */ - protected String reference; - - /** The product id. */ - protected String productId; - - /** The product owner. */ - protected String productOwner; - - /** The class code. */ - protected ITravelClassType classCode = ITravelClassType.second; - - /** The valid from. */ - protected Date validFrom; - - /** The valid until. */ - protected Date validUntil; - - - /** The number of travel dates. */ - protected int numberOfTravelDates; - - /** The includes suplements. */ - protected boolean includesSupplements = true; - - /** The carriers. */ - protected Collectioncarriers = new LinkedHashSet(); - - /** The extension data. */ - protected IExtension extensionData; - - protected Collection activatedDays = new LinkedHashSet(); - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#getNumberOfTravelDates() - */ - public int getNumberOfTravelDates() { - return numberOfTravelDates; - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#setNumberOfTravelDates(int) - */ - public void setNumberOfTravelDates(int numberOfTravelDates) { - this.numberOfTravelDates = numberOfTravelDates; - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#isIncludesSuplements() - */ - public boolean isIncludesSupplements() { - return includesSupplements; - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#setIncludesSuplements(boolean) - */ - public void setIncludesSupplements(boolean includesSuplements) { - this.includesSupplements = includesSuplements; - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#getCarriers() - */ - public Collection getCarriers() { - return carriers; - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#addCarrier(java.lang.Integer) - */ - public void addCarrier(String carrier) { - this.carriers.add(carrier); - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#getReference() - */ - public String getReference() { - return reference; - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#setReference(java.lang.String) - */ - public void setReference(String reference) { - this.reference = reference; - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#getProductId() - */ - public String getProductId() { - return productId; - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#setProductId(java.lang.String) - */ - public void setProductId(String productId) { - this.productId = productId; - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#getProductOwner() - */ - public String getProductOwner() { - return productOwner; - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#setProductOwner(java.lang.String) - */ - public void setProductOwner(String productOwner) { - this.productOwner = productOwner; - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#getClassCode() - */ - public ITravelClassType getClassCode() { - return classCode; - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#setClassCode(org.uic.ticket.api.asn.om.TravelClassType) - */ - public void setClassCode(ITravelClassType classCode) { - this.classCode = classCode; - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#getValidFrom() - */ - public Date getValidFrom() { - return validFrom; - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#setValidFrom(java.util.Date) - */ - public void setValidFrom(Date validFrom) { - this.validFrom = validFrom; - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#getValidUntil() - */ - public Date getValidUntil() { - return validUntil; - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#setValidUntil(java.util.Date) - */ - public void setValidUntil(Date validUntil) { - this.validUntil = validUntil; - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#getExtension() - */ - @Override - public IExtension getExtension() { - return extensionData; - } - - /* (nicht-Javadoc) - * @see org.uic.ticket.api.spec.IFipTicket#setExtension(org.uic.ticket.api.spec.IExtension) - */ - @Override - public void setExtension(IExtension extensionData) { - this.extensionData = extensionData; - } - - @Override - public Collection getActivatedDays() { - return activatedDays; - } - - @Override - public void addActivatedDay(Date day) { - this.activatedDays.add(day); - } - - - - - - - - - - - -} -- cgit v1.2.3