-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
6,118 additions
and
56 deletions.
There are no files selected for viewing
72 changes: 72 additions & 0 deletions
72
service/src/main/java/fi/espoo/evaka/sarma/model/AcceptedFileFormatType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
|
||
package fi.espoo.evaka.sarma.model; | ||
|
||
import jakarta.xml.bind.annotation.XmlEnum; | ||
import jakarta.xml.bind.annotation.XmlEnumValue; | ||
import jakarta.xml.bind.annotation.XmlType; | ||
|
||
|
||
/** | ||
* <p>Java class for AcceptedFileFormatType. | ||
* | ||
* <p>The following schema fragment specifies the expected content contained within this class. | ||
* <p> | ||
* <pre> | ||
* <simpleType name="AcceptedFileFormatType"> | ||
* <restriction base="{http://www.w3.org/2001/XMLSchema}string"> | ||
* <enumeration value="pdf"/> | ||
* <enumeration value="txt"/> | ||
* <enumeration value="docx"/> | ||
* <enumeration value="doc"/> | ||
* <enumeration value="xml"/> | ||
* <enumeration value="jpg"/> | ||
* <enumeration value="png"/> | ||
* <enumeration value="tiff"/> | ||
* <enumeration value="cda/level2"/> | ||
* </restriction> | ||
* </simpleType> | ||
* </pre> | ||
* | ||
*/ | ||
@XmlType(name = "AcceptedFileFormatType") | ||
@XmlEnum | ||
public enum AcceptedFileFormatType { | ||
|
||
@XmlEnumValue("pdf") | ||
PDF("pdf"), | ||
@XmlEnumValue("txt") | ||
TXT("txt"), | ||
@XmlEnumValue("docx") | ||
DOCX("docx"), | ||
@XmlEnumValue("doc") | ||
DOC("doc"), | ||
@XmlEnumValue("xml") | ||
XML("xml"), | ||
@XmlEnumValue("jpg") | ||
JPG("jpg"), | ||
@XmlEnumValue("png") | ||
PNG("png"), | ||
@XmlEnumValue("tiff") | ||
TIFF("tiff"), | ||
@XmlEnumValue("cda/level2") | ||
CDA_LEVEL_2("cda/level2"); | ||
private final String value; | ||
|
||
AcceptedFileFormatType(String v) { | ||
value = v; | ||
} | ||
|
||
public String value() { | ||
return value; | ||
} | ||
|
||
public static AcceptedFileFormatType fromValue(String v) { | ||
for (AcceptedFileFormatType c: AcceptedFileFormatType.values()) { | ||
if (c.value.equals(v)) { | ||
return c; | ||
} | ||
} | ||
throw new IllegalArgumentException(v); | ||
} | ||
|
||
} |
69 changes: 69 additions & 0 deletions
69
service/src/main/java/fi/espoo/evaka/sarma/model/AcceptedMimeTypeType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
|
||
package fi.espoo.evaka.sarma.model; | ||
|
||
import jakarta.xml.bind.annotation.XmlEnum; | ||
import jakarta.xml.bind.annotation.XmlEnumValue; | ||
import jakarta.xml.bind.annotation.XmlType; | ||
|
||
|
||
/** | ||
* <p>Java class for AcceptedMimeTypeType. | ||
* | ||
* <p>The following schema fragment specifies the expected content contained within this class. | ||
* <p> | ||
* <pre> | ||
* <simpleType name="AcceptedMimeTypeType"> | ||
* <restriction base="{http://www.w3.org/2001/XMLSchema}string"> | ||
* <enumeration value="application/pdf"/> | ||
* <enumeration value="text/plain"/> | ||
* <enumeration value="text/xml"/> | ||
* <enumeration value="application/msword"/> | ||
* <enumeration value="application/vnd.openxmlformats-officedocument.wordprocessingml.document"/> | ||
* <enumeration value="image/jpeg"/> | ||
* <enumeration value="image/png"/> | ||
* <enumeration value="image/tiff"/> | ||
* </restriction> | ||
* </simpleType> | ||
* </pre> | ||
* | ||
*/ | ||
@XmlType(name = "AcceptedMimeTypeType") | ||
@XmlEnum | ||
public enum AcceptedMimeTypeType { | ||
|
||
@XmlEnumValue("application/pdf") | ||
APPLICATION_PDF("application/pdf"), | ||
@XmlEnumValue("text/plain") | ||
TEXT_PLAIN("text/plain"), | ||
@XmlEnumValue("text/xml") | ||
TEXT_XML("text/xml"), | ||
@XmlEnumValue("application/msword") | ||
APPLICATION_MSWORD("application/msword"), | ||
@XmlEnumValue("application/vnd.openxmlformats-officedocument.wordprocessingml.document") | ||
APPLICATION_VND_OPENXMLFORMATS_OFFICEDOCUMENT_WORDPROCESSINGML_DOCUMENT("application/vnd.openxmlformats-officedocument.wordprocessingml.document"), | ||
@XmlEnumValue("image/jpeg") | ||
IMAGE_JPEG("image/jpeg"), | ||
@XmlEnumValue("image/png") | ||
IMAGE_PNG("image/png"), | ||
@XmlEnumValue("image/tiff") | ||
IMAGE_TIFF("image/tiff"); | ||
private final String value; | ||
|
||
AcceptedMimeTypeType(String v) { | ||
value = v; | ||
} | ||
|
||
public String value() { | ||
return value; | ||
} | ||
|
||
public static AcceptedMimeTypeType fromValue(String v) { | ||
for (AcceptedMimeTypeType c: AcceptedMimeTypeType.values()) { | ||
if (c.value.equals(v)) { | ||
return c; | ||
} | ||
} | ||
throw new IllegalArgumentException(v); | ||
} | ||
|
||
} |
114 changes: 114 additions & 0 deletions
114
service/src/main/java/fi/espoo/evaka/sarma/model/AccessRightType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
|
||
package fi.espoo.evaka.sarma.model; | ||
|
||
import jakarta.xml.bind.annotation.XmlAccessType; | ||
import jakarta.xml.bind.annotation.XmlAccessorType; | ||
import jakarta.xml.bind.annotation.XmlType; | ||
|
||
|
||
/** | ||
* <p>Java class for accessRightType complex type. | ||
* | ||
* <p>The following schema fragment specifies the expected content contained within this class. | ||
* | ||
* <pre> | ||
* <complexType name="accessRightType"> | ||
* <complexContent> | ||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
* <sequence> | ||
* <element name="accessRightName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> | ||
* <element name="accessRightRole" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> | ||
* <element name="accessRightDescription" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> | ||
* </sequence> | ||
* </restriction> | ||
* </complexContent> | ||
* </complexType> | ||
* </pre> | ||
* | ||
* | ||
*/ | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "accessRightType", propOrder = { | ||
"accessRightName", | ||
"accessRightRole", | ||
"accessRightDescription" | ||
}) | ||
public class AccessRightType { | ||
|
||
protected String accessRightName; | ||
protected String accessRightRole; | ||
protected String accessRightDescription; | ||
|
||
/** | ||
* Gets the value of the accessRightName property. | ||
* | ||
* @return | ||
* possible object is | ||
* {@link String } | ||
* | ||
*/ | ||
public String getAccessRightName() { | ||
return accessRightName; | ||
} | ||
|
||
/** | ||
* Sets the value of the accessRightName property. | ||
* | ||
* @param value | ||
* allowed object is | ||
* {@link String } | ||
* | ||
*/ | ||
public void setAccessRightName(String value) { | ||
this.accessRightName = value; | ||
} | ||
|
||
/** | ||
* Gets the value of the accessRightRole property. | ||
* | ||
* @return | ||
* possible object is | ||
* {@link String } | ||
* | ||
*/ | ||
public String getAccessRightRole() { | ||
return accessRightRole; | ||
} | ||
|
||
/** | ||
* Sets the value of the accessRightRole property. | ||
* | ||
* @param value | ||
* allowed object is | ||
* {@link String } | ||
* | ||
*/ | ||
public void setAccessRightRole(String value) { | ||
this.accessRightRole = value; | ||
} | ||
|
||
/** | ||
* Gets the value of the accessRightDescription property. | ||
* | ||
* @return | ||
* possible object is | ||
* {@link String } | ||
* | ||
*/ | ||
public String getAccessRightDescription() { | ||
return accessRightDescription; | ||
} | ||
|
||
/** | ||
* Sets the value of the accessRightDescription property. | ||
* | ||
* @param value | ||
* allowed object is | ||
* {@link String } | ||
* | ||
*/ | ||
public void setAccessRightDescription(String value) { | ||
this.accessRightDescription = value; | ||
} | ||
|
||
} |
Oops, something went wrong.