-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #426 from focus-shift/424-jackson-mapping
424 jackson mapping
- Loading branch information
Showing
12 changed files
with
178 additions
and
6 deletions.
There are no files selected for viewing
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
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
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
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
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
3 changes: 3 additions & 0 deletions
3
jollyday-jackson/src/main/java/de/focus_shift/jollyday/jackson/mapping/MoveableHoliday.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
4 changes: 4 additions & 0 deletions
4
...jackson/src/main/java/de/focus_shift/jollyday/jackson/mapping/RelativeToEasterSunday.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
6 changes: 6 additions & 0 deletions
6
jollyday-jackson/src/main/java/de/focus_shift/jollyday/jackson/mapping/RelativeToFixed.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
2 changes: 2 additions & 0 deletions
2
...ckson/src/main/java/de/focus_shift/jollyday/jackson/mapping/RelativeToWeekdayInMonth.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
69 changes: 69 additions & 0 deletions
69
jollyday-jackson/src/main/java/de/focus_shift/jollyday/jackson/mapping/Source.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 de.focus_shift.jollyday.jackson.mapping; | ||
|
||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; | ||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText; | ||
|
||
|
||
/** | ||
* <p>Java class for Source complex type. | ||
* | ||
* <p>The following schema fragment specifies the expected content contained within this class. | ||
* | ||
* <pre> | ||
* <complexType name="Source"> | ||
* <simpleContent> | ||
* <extension base="<http://www.w3.org/2001/XMLSchema>string"> | ||
* <attribute name="of" type="{http://www.w3.org/2001/XMLSchema}string" /> | ||
* </extension> | ||
* </simpleContent> | ||
* </complexType> | ||
* </pre> | ||
*/ | ||
public class Source { | ||
|
||
@JacksonXmlText | ||
protected String value; | ||
@JacksonXmlProperty(localName = "of", isAttribute = true) | ||
protected String of; | ||
|
||
/** | ||
* Gets the value of the value property. | ||
* | ||
* @return possible object is | ||
* {@link String } | ||
*/ | ||
public String getValue() { | ||
return value; | ||
} | ||
|
||
/** | ||
* Sets the value of the value property. | ||
* | ||
* @param value allowed object is | ||
* {@link String } | ||
*/ | ||
public void setValue(String value) { | ||
this.value = value; | ||
} | ||
|
||
/** | ||
* Gets the value of the of property. | ||
* | ||
* @return possible object is | ||
* {@link String } | ||
*/ | ||
public String getOf() { | ||
return of; | ||
} | ||
|
||
/** | ||
* Sets the value of the of property. | ||
* | ||
* @param value allowed object is | ||
* {@link String } | ||
*/ | ||
public void setOf(String value) { | ||
this.of = value; | ||
} | ||
|
||
} |
58 changes: 58 additions & 0 deletions
58
jollyday-jackson/src/main/java/de/focus_shift/jollyday/jackson/mapping/Sources.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,58 @@ | ||
package de.focus_shift.jollyday.jackson.mapping; | ||
|
||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
|
||
/** | ||
* <p>Java class for Sources complex type. | ||
* | ||
* <p>The following schema fragment specifies the expected content contained within this class. | ||
* | ||
* <pre> | ||
* <complexType name="Sources"> | ||
* <complexContent> | ||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
* <sequence> | ||
* <element name="Source" type="{https://focus_shift.de/jollyday/schema/holiday}Source" maxOccurs="unbounded" minOccurs="0"/> | ||
* </sequence> | ||
* </restriction> | ||
* </complexContent> | ||
* </complexType> | ||
* </pre> | ||
*/ | ||
public class Sources { | ||
|
||
@JacksonXmlElementWrapper(localName = "Source", useWrapping = false) | ||
protected List<Source> source; | ||
|
||
/** | ||
* Gets the value of the source property. | ||
* | ||
* <p> | ||
* This accessor method returns a reference to the live list, | ||
* not a snapshot. Therefore any modification you make to the | ||
* returned list will be present inside the Jakarta XML Binding object. | ||
* This is why there is not a <CODE>set</CODE> method for the source property. | ||
* | ||
* <p> | ||
* For example, to add a new item, do as follows: | ||
* <pre> | ||
* getSource().add(newItem); | ||
* </pre> | ||
* | ||
* | ||
* <p> | ||
* Objects of the following type(s) are allowed in the list | ||
* {@link Source } | ||
*/ | ||
public List<Source> getSource() { | ||
if (source == null) { | ||
source = new ArrayList<Source>(); | ||
} | ||
return this.source; | ||
} | ||
|
||
} |
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