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
5 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
processing-api/src/main/java/org/n52/iceland/ogc/ows/OwsKeyword.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,40 @@ | ||
package org.n52.iceland.ogc.ows; | ||
|
||
import java.util.Optional; | ||
|
||
/** | ||
* TODO JavaDoc | ||
* | ||
* @author Christian Autermann | ||
*/ | ||
public class OwsKeyword { | ||
|
||
private final OwsLanguageString keyword; | ||
private final Optional<OwsCodeType> type; | ||
|
||
public OwsKeyword(OwsLanguageString keyword, OwsCodeType type) { | ||
this.keyword = keyword; | ||
this.type = Optional.ofNullable(type); | ||
} | ||
|
||
public OwsKeyword(OwsLanguageString keyword) { | ||
this(keyword, null); | ||
} | ||
|
||
public OwsKeyword(String keyword) { | ||
this(keyword, null); | ||
} | ||
|
||
public OwsKeyword(String keyword, OwsCodeType type) { | ||
this(new OwsLanguageString(keyword), type); | ||
} | ||
|
||
public OwsLanguageString getKeyword() { | ||
return keyword; | ||
} | ||
|
||
public Optional<OwsCodeType> getType() { | ||
return type; | ||
} | ||
|
||
} |
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