[196868] Mechanism for obtaining the substitution group value of an element declaration via the content model is required
diff --git a/bundles/org.eclipse.wst.xsd.core/src-contentmodel/org/eclipse/wst/xsd/contentmodel/internal/XSDImpl.java b/bundles/org.eclipse.wst.xsd.core/src-contentmodel/org/eclipse/wst/xsd/contentmodel/internal/XSDImpl.java
index aea02e9..1b18258 100644
--- a/bundles/org.eclipse.wst.xsd.core/src-contentmodel/org/eclipse/wst/xsd/contentmodel/internal/XSDImpl.java
+++ b/bundles/org.eclipse.wst.xsd.core/src-contentmodel/org/eclipse/wst/xsd/contentmodel/internal/XSDImpl.java
@@ -128,6 +128,7 @@
public static final String PROPERTY_XSITYPES = "XSITypes";
public static final String PROPERTY_DERIVED_ELEMENT_DECLARATION = "DerivedElementDeclaration";
public static final String PROPERTY_SUBSTITUTION_GROUP = "SubstitutionGroup";
+ public static final String PROPERTY_SUBSTITUTION_GROUP_VALUE = "SubstitutionGroupValue";
public static final String PROPERTY_ABSTRACT = "Abstract";
/**
* Definition info for element declarations.
@@ -1802,6 +1803,10 @@
{
return getSubstitutionGroup();
}
+ else if (propertyName.equals(PROPERTY_SUBSTITUTION_GROUP_VALUE))
+ {
+ return getSubstitutionGroupValue();
+ }
else if (propertyName.equals(PROPERTY_ABSTRACT))
{
return getAbstract();
@@ -1828,6 +1833,17 @@
}
/**
+ * Returns the value of the substitutionGroup attribute.
+ *
+ * @return value of the substitutionGroup attribute
+ */
+ public String getSubstitutionGroupValue()
+ {
+ return getResolvedXSDElementDeclaration().getElement().getAttribute(XSDConstants.SUBSTITUTIONGROUP_ATTRIBUTE);
+ }
+
+
+ /**
* Returns whether the element is 'Abstract'.
*
* @return true if the element is 'Abstract'.