diff options
author | njames <nkskjames@gmail.com> | 2017-08-25 11:17:52 -0500 |
---|---|---|
committer | njames <nkskjames@gmail.com> | 2017-08-25 11:18:38 -0500 |
commit | d32588b8eff11c67059c740516113c1ec0aadb52 (patch) | |
tree | 36926355e8ab0ce15d3bfba59d886544f4fa8de9 /src/com/ibm/ServerWizard2/model/Attribute.java | |
parent | 4f068e7531081501dc995546223d02e2975e82f0 (diff) | |
download | serverwiz-master.tar.gz serverwiz-master.zip |
Processes serverwizShow tag and enables attribute filtering
Also fixes xml ordering dependency
Diffstat (limited to 'src/com/ibm/ServerWizard2/model/Attribute.java')
-rw-r--r-- | src/com/ibm/ServerWizard2/model/Attribute.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/ibm/ServerWizard2/model/Attribute.java b/src/com/ibm/ServerWizard2/model/Attribute.java index 17b346c..b0eaecb 100644 --- a/src/com/ibm/ServerWizard2/model/Attribute.java +++ b/src/com/ibm/ServerWizard2/model/Attribute.java @@ -7,6 +7,7 @@ import org.w3c.dom.Node; public class Attribute implements java.io.Serializable { private static final long serialVersionUID = 1L; + public String show = ""; public String name = ""; public String group = ""; public AttributeValue value; @@ -31,6 +32,7 @@ public class Attribute implements java.io.Serializable { public Attribute(Attribute a) { this.name = a.name; + this.show = a.show; this.desc = a.desc; this.group = a.group; this.persistency = a.persistency; @@ -123,12 +125,11 @@ public class Attribute implements java.io.Serializable { if (SystemModel.isElementDefined(attribute,"writeable")) { writeable=true; } - if (SystemModel.isElementDefined(attribute,"serverwizHide") || - name.equals("MODEL") || name.equals("TYPE") || name.equals("CLASS")) { + if (name.equals("MODEL") || name.equals("TYPE") || name.equals("CLASS")) { hide=true; } - if (SystemModel.isElementDefined(attribute,"serverwizReadonly")) { - readonly=true; + if (SystemModel.isElementDefined(attribute,"serverwizShow")) { + show = SystemModel.getElement(attribute, "serverwizShow"); } Node simpleType = attribute.getElementsByTagName("simpleType").item(0); if (simpleType!=null) { |