closes #196
This commit is contained in:
@@ -1,21 +1,45 @@
|
|||||||
package org.mustangproject.ZUGFeRD;
|
package org.mustangproject.ZUGFeRD;
|
||||||
|
|
||||||
|
/***
|
||||||
|
* specifies a kind of a XML completeness levels,
|
||||||
|
* e.g. Factur-X has 6 (Minimum, Basic-WL, Basic, EN16931, Extended, and XRechnung),
|
||||||
|
* ZUGFeRD 1 had and Order-X will have three (Basic, Comfort, Extended)
|
||||||
|
* and the XRechnung has two (Standard, Extension)
|
||||||
|
* For the XRechnung at the time being please use Factur-X's Xrechnung
|
||||||
|
*/
|
||||||
public class Profile {
|
public class Profile {
|
||||||
protected String name, id;
|
protected String name, id;
|
||||||
|
|
||||||
|
/***
|
||||||
|
* Contruct
|
||||||
|
* @param name human readable name of the profile, also used as basis to detemine the XMP Name
|
||||||
|
* @param ID XML Guideline ID
|
||||||
|
*/
|
||||||
public Profile(String name, String ID) {
|
public Profile(String name, String ID) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.id = ID;
|
this.id = ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* gets the name
|
||||||
|
* @return the name of the profile
|
||||||
|
*/
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* get guideline id
|
||||||
|
* @return the XML Guideline ID of the profile
|
||||||
|
*/
|
||||||
public String getID() {
|
public String getID() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***
|
||||||
|
* if the profile is embedded in PDF we need RDF metadata
|
||||||
|
* @return the XMP name string of the profile
|
||||||
|
*/
|
||||||
public String getXMPName() {
|
public String getXMPName() {
|
||||||
if (name.equals("BASICWL")) {
|
if (name.equals("BASICWL")) {
|
||||||
return "BASIC WL";
|
return "BASIC WL";
|
||||||
|
|||||||
Reference in New Issue
Block a user