Skip to content

Commit

Permalink
javadoc corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
jstaerk committed Nov 26, 2023
1 parent 05a6a96 commit 5fde51a
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 45 deletions.
1 change: 1 addition & 0 deletions library/src/main/java/org/mustangproject/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,7 @@ public String getVATDueDateTypeCode() {
/**
* Decide when the VAT should be collected.
* @param vatDueDateTypeCode use EventTimeCodeTypeConstants
* @return fluent setter
*/
public Invoice setVATDueDateTypeCode(String vatDueDateTypeCode) {
this.vatDueDateTypeCode = vatDueDateTypeCode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ public ReferencedDocument(String issuerAssignedID, String referenceTypeCode) {

/***
* sets an ID assigned by the sender
* @param issuerAssignedID
* @param issuerAssignedID the ID as a string :-)
*/
public void setIssuerAssignedID(String issuerAssignedID) {
this.issuerAssignedID = issuerAssignedID;
}

/**
* which type is the document? e.g. "916" for additional invoice related
* @param typeCode
* @param typeCode as String, e.g. 916
*/
public void setTypeCode(String typeCode) {
this.typeCode = typeCode;
}

/**
* type of the reference of this line, a UNTDID 1153 code
* @param referenceTypeCode
* @param referenceTypeCode three uppercase character reference type code as string
*/
public void setReferenceTypeCode(String referenceTypeCode) {
this.referenceTypeCode = referenceTypeCode;
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/org/mustangproject/SubjectCode.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.mustangproject;

/**
* EN16931-ID: BT-21 - the qualification of the free text on the invoice from BT-22<br/>
* EN16931-ID: BT-21 - the qualification of the free text on the invoice from BT-22
* In the first step only the recommended codes are implemented.
*/
public enum SubjectCode {
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/org/mustangproject/TradeParty.java
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ public TradeParty setAdditionalAddress(String additionalAddress1, String additio
* e.g. which floor (if LineTwo has already been used e.g. for which building)
* This could sometimes be BT-165?
*
* @param additionalAddress2
* @param additionalAddress2 e.g. which floor, as String
* @return fluent setter
*/
public TradeParty setAdditionalAddressExtension(String additionalAddress2) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
/** **********************************************************************
*
/**
* *********************************************************************
* <p>
* Copyright 2018 Jochen Staerk
*
* <p>
* Use is subject to license terms.
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0.
*
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
* <p>
* See the License for the specific language governing permissions and
* limitations under the License.
*
*********************************************************************** */
* <p>
* **********************************************************************
*/
package org.mustangproject.ZUGFeRD;

/**
Expand All @@ -38,7 +40,7 @@
/***
* the interface of an transaction, e.g. an invoice, you want to create xml
* (potentially to be added to a PDF) for
*
*
* @see org.mustangproject.Invoice
*/
public interface IExportableTransaction {
Expand Down Expand Up @@ -82,13 +84,12 @@ default Date getIssueDate() {
/**
* this should be the full sender institution name, details, manager and tax
* registration. It is one of the few functions which may return null. e.g.
* <p/>
*
* Lieferant GmbH Lieferantenstraße 20 80333 München Deutschland
* Geschäftsführer: Hans Muster Handelsregisternummer: H A 123
* <p/>
*
* It is written as an includedNode with subjectCode {@link org.mustangproject.SubjectCode#REG}. See also
* {@link #getNotesWithSubjectCode()}
* It is written as an includedNode with subjectCode {@link org.mustangproject.SubjectCode#REG}. See also
* {@link #getNotesWithSubjectCode()}
* @return null or full sender institution name, details, manager and tax
* registration
*/
Expand Down Expand Up @@ -150,7 +151,7 @@ default IZUGFeRDAllowanceCharge[] getZFLogisticsServiceCharges() {

/**
* the creditors payment informations
*
*
* @deprecated use getTradeSettlement
* @return an array of IZUGFeRDTradeSettlementPayment
*/
Expand Down Expand Up @@ -441,7 +442,7 @@ default BigDecimal getTotalPrepaidAmount() {

/***
* delivery address, i.e. ram:ShipToTradeParty (only supported for zf2)
*
*
* @return the IZUGFeRDExportableTradeParty delivery address
*/

Expand All @@ -452,7 +453,7 @@ default IZUGFeRDExportableTradeParty getDeliveryAddress() {
/***
* specifies the document level delivery period, will be included in a
* BillingSpecifiedPeriod element
*
*
* @return the beginning of the delivery period
*/
default Date getDetailedDeliveryPeriodFrom() {
Expand All @@ -462,7 +463,7 @@ default Date getDetailedDeliveryPeriodFrom() {
/***
* specifies the document level delivery period, will be included in a
* BillingSpecifiedPeriod element
*
*
* @return the end of the delivery period
*/
default Date getDetailedDeliveryPeriodTo() {
Expand All @@ -486,21 +487,24 @@ default String getDespatchAdviceReferencedDocumentID() {

/***
* additional text description
*
*
* @return an array of strings of document wide "includedNotes" (descriptive
* text values)
*/
default String[] getNotes() {
return null;
}

/**
* A grouping of business terms to indicate accounting-relevant free texts including a qualification of these. <p/>
* The information are written to the same xml nodes like {@link #getNotes()} but with explicit subjectCode.
*/
default List<IncludedNote> getNotesWithSubjectCode(){
return null;
}
/**
* A grouping of business terms to indicate accounting-relevant free texts including a qualification of these.
*
* The information are written to the same xml nodes like {@link #getNotes()} but with explicit subjectCode.
* @return list of the notes
*/
default List<IncludedNote> getNotesWithSubjectCode() {
return null;
}

default String getSpecifiedProcuringProjectName() {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
/** **********************************************************************
*
/**
* *********************************************************************
* <p>
* Copyright 2018 Jochen Staerk
*
* <p>
* Use is subject to license terms.
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0.
*
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*
* <p>
* See the License for the specific language governing permissions and
* limitations under the License.
*
*********************************************************************** */
* <p>
* **********************************************************************
*/
package org.mustangproject.ZUGFeRD;

import org.mustangproject.TradeParty;
Expand Down Expand Up @@ -50,13 +52,14 @@ default String getGlobalID() {
}


/***
/***
* gets the official representation
* @return the interface with the attributes of the legal organisation
*/
default IZUGFeRDLegalOrganisation getLegalOrganisation() {
default IZUGFeRDLegalOrganisation getLegalOrganisation() {
return null;
}

/**
* customer global identification scheme
*
Expand All @@ -69,15 +72,17 @@ default String getGlobalIDScheme() {

/**
* URIUniversalCommunication scheme (see EAS code list of the ZUGFeRD documentation)
*
* I believe EM for Email
* @return String with code
*/
default String getUriUniversalCommunicationIDScheme() {
return null;
}

/**
* The URIID of URIUniversalCommunicationID
* It is used by some countries, i.e. Luxembourg
*
* It is used by some countries, i.e. Luxembourg
* @return the URI as string
*/
default String getUriUniversalCommunicationID() {
return null;
Expand All @@ -94,6 +99,7 @@ default IZUGFeRDExportableContact getContact() {
* @return First and last name of the recipient
*/
String getName();

/**
* Postal code of the recipient
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,8 @@ public IExporter prepare() throws IOException {
/**
* Reads the XMPMetadata from the PDDocument, if it exists.
* Otherwise creates XMPMetadata.
* @return the finished XMPMetadata object
* @throws IOException when e.g. XmpParsingException
*/
protected XMPMetadata getXmpMetadata()
throws IOException
Expand All @@ -670,6 +672,7 @@ protected byte[] serializeXmpMetadata(XMPMetadata xmpMetadata) throws Transforme
/**
* Sets the producer if the overwrite flag is set or the producer is not already set.
* Sets the PDFVersion to 1.4 if the field is empty.
* @param xmp the metadata as XML
*/
protected void writeAdobePDFSchema(XMPMetadata xmp) {
AdobePDFSchema pdf = getAdobePDFSchema(xmp);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ private int getPDFAVersion(byte[] byteArrayInputStream) throws IOException {
/***
* Load from filename
* @param pdfFilename binary of a PDF/A1 compliant document
* @return
* @throws IOException
* @return the A1 or A3 exporter
* @throws IOException e.g. on read error
*/
public IZUGFeRDExporter load(String pdfFilename) throws IOException {
determineAndSetExporter(getPDFAVersion(filenameToByteArray(pdfFilename)));
Expand Down

0 comments on commit 5fde51a

Please sign in to comment.