Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 7 additions and 0 deletions.
  1. +7 −0 client/src/main/java/org/apache/ivory/entity/v0/EntityType.java
View
7 client/src/main/java/org/apache/ivory/entity/v0/EntityType.java
@@ -54,9 +54,12 @@ public boolean handleEvent(ValidationEvent event) {
private Schema schema;
private String[] immutableProperties;
+ private String schemaFile;
+
private EntityType(Class<? extends Entity> typeClass, String schemaFile, String... immutableProperties) {
clazz = typeClass;
this.immutableProperties = immutableProperties;
+ this.schemaFile = schemaFile;
try {
jaxbContext = JAXBContext.newInstance(typeClass);
synchronized(this) {
@@ -72,6 +75,10 @@ private EntityType(Class<? extends Entity> typeClass, String schemaFile, String.
return clazz;
}
+ public String getSchemaFile() {
+ return schemaFile;
+ }
+
public Marshaller getMarshaller() throws JAXBException {
Marshaller marshaller = jaxbContext.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);

No commit comments for this range

Something went wrong with that request. Please try again.