-
Notifications
You must be signed in to change notification settings - Fork 0
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 #111 from openpreserve/feat/odf/profiles
FEAT: Extended checking profiles
- Loading branch information
Showing
17 changed files
with
277 additions
and
137 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
16 changes: 16 additions & 0 deletions
16
odf-core/src/main/java/org/openpreservation/odf/validation/Profile.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,16 @@ | ||
package org.openpreservation.odf.validation; | ||
|
||
import java.io.IOException; | ||
import java.util.SortedSet; | ||
|
||
import org.openpreservation.odf.pkg.OdfPackage; | ||
import org.openpreservation.odf.xml.OdfXmlDocument; | ||
|
||
public interface Profile { | ||
public String getId(); | ||
public String getName(); | ||
public String getDescription(); | ||
public ProfileResult check(final OdfXmlDocument document) throws IOException; | ||
public ProfileResult check(final OdfPackage odfPackage) throws IOException; | ||
public SortedSet<Rule> getRules(); | ||
} |
13 changes: 13 additions & 0 deletions
13
odf-core/src/main/java/org/openpreservation/odf/validation/ProfileResult.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,13 @@ | ||
package org.openpreservation.odf.validation; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import org.openpreservation.messages.MessageLog; | ||
|
||
public interface ProfileResult { | ||
public ValidationReport getValidationReport(); | ||
public Map<String, MessageLog> getPackageMessageLogMap(); | ||
public MessageLog getMessageLogForPath(final String path); | ||
public List<String> getLogPaths(); | ||
} |
Oops, something went wrong.