You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by dk...@apache.org on 2021/05/04 15:24:40 UTC
[ws-xmlschema] 01/02: [XMLSCHEMA-59] Make setVersion public
This is an automated email from the ASF dual-hosted git repository.
dkulp pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ws-xmlschema.git
commit 66a29cef6de092bd723987815c278b3a351c1459
Author: Daniel Kulp <dk...@apache.org>
AuthorDate: Tue May 4 10:50:29 2021 -0400
[XMLSCHEMA-59] Make setVersion public
---
.../main/java/org/apache/ws/commons/schema/XmlSchema.java | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchema.java b/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchema.java
index 87f78b9..45c7aa5 100644
--- a/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchema.java
+++ b/xmlschema-core/src/main/java/org/apache/ws/commons/schema/XmlSchema.java
@@ -463,6 +463,15 @@ public class XmlSchema extends XmlSchemaAnnotated implements NamespaceContextOwn
}
/**
+ * Set the declared XML Schema version of this schema
+ *
+ * @param version the new version.
+ */
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
+ /**
* Set the default attribute form for this schema.
*
* @param value the form. This may not be null.
@@ -831,10 +840,6 @@ public class XmlSchema extends XmlSchemaAnnotated implements NamespaceContextOwn
this.syntacticalTargetNamespace = syntacticalTargetNamespace;
}
- void setVersion(String version) {
- this.version = version;
- }
-
/**
* Get a schema from an import
*