-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
a20dbe6
commit d1415cf
Showing
14 changed files
with
360 additions
and
33 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
39 changes: 39 additions & 0 deletions
39
jocds-core/src/main/java/org/devgateway/jocds/jsonschema/checker/CodelistSyntaxChecker.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,39 @@ | ||
/* | ||
* Copyright (c) 2018. Development Gateway and contributors. All rights reserved. | ||
* Licensed under the MIT license. See LICENSE file in the project root for details. | ||
*/ | ||
|
||
package org.devgateway.jocds.jsonschema.checker; | ||
|
||
import com.github.fge.jackson.NodeType; | ||
import com.github.fge.jackson.jsonpointer.JsonPointer; | ||
import com.github.fge.jsonschema.core.exceptions.ProcessingException; | ||
import com.github.fge.jsonschema.core.keyword.syntax.checkers.AbstractSyntaxChecker; | ||
import com.github.fge.jsonschema.core.keyword.syntax.checkers.SyntaxChecker; | ||
import com.github.fge.jsonschema.core.report.ProcessingReport; | ||
import com.github.fge.jsonschema.core.tree.SchemaTree; | ||
import com.github.fge.msgsimple.bundle.MessageBundle; | ||
import org.devgateway.jocds.OcdsValidatorConstants; | ||
|
||
import java.util.Collection; | ||
|
||
public final class CodelistSyntaxChecker extends AbstractSyntaxChecker { | ||
|
||
private static final SyntaxChecker INSTANCE = new CodelistSyntaxChecker(); | ||
|
||
public static SyntaxChecker getInstance() { | ||
return INSTANCE; | ||
} | ||
|
||
private CodelistSyntaxChecker() { | ||
super(OcdsValidatorConstants.CustomSchemaKeywords.CODE_LIST, NodeType.STRING); | ||
} | ||
|
||
@Override | ||
protected void checkValue(final Collection<JsonPointer> pointers, | ||
final MessageBundle bundle, final ProcessingReport report, | ||
final SchemaTree tree) | ||
throws ProcessingException { | ||
|
||
} | ||
} |
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
39 changes: 39 additions & 0 deletions
39
...ore/src/main/java/org/devgateway/jocds/jsonschema/checker/MergeStrategySyntaxChecker.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,39 @@ | ||
/* | ||
* Copyright (c) 2018. Development Gateway and contributors. All rights reserved. | ||
* Licensed under the MIT license. See LICENSE file in the project root for details. | ||
*/ | ||
|
||
package org.devgateway.jocds.jsonschema.checker; | ||
|
||
import com.github.fge.jackson.NodeType; | ||
import com.github.fge.jackson.jsonpointer.JsonPointer; | ||
import com.github.fge.jsonschema.core.exceptions.ProcessingException; | ||
import com.github.fge.jsonschema.core.keyword.syntax.checkers.AbstractSyntaxChecker; | ||
import com.github.fge.jsonschema.core.keyword.syntax.checkers.SyntaxChecker; | ||
import com.github.fge.jsonschema.core.report.ProcessingReport; | ||
import com.github.fge.jsonschema.core.tree.SchemaTree; | ||
import com.github.fge.msgsimple.bundle.MessageBundle; | ||
import org.devgateway.jocds.OcdsValidatorConstants; | ||
|
||
import java.util.Collection; | ||
|
||
public final class MergeStrategySyntaxChecker extends AbstractSyntaxChecker { | ||
|
||
private static final SyntaxChecker INSTANCE = new MergeStrategySyntaxChecker(); | ||
|
||
public static SyntaxChecker getInstance() { | ||
return INSTANCE; | ||
} | ||
|
||
private MergeStrategySyntaxChecker() { | ||
super(OcdsValidatorConstants.CustomSchemaKeywords.MERGE_STRATEGY, NodeType.STRING); | ||
} | ||
|
||
@Override | ||
protected void checkValue(final Collection<JsonPointer> pointers, | ||
final MessageBundle bundle, final ProcessingReport report, | ||
final SchemaTree tree) | ||
throws ProcessingException { | ||
|
||
} | ||
} |
Oops, something went wrong.