115 * <a href="http://www.w3.org/TR/xmlschema-1/#cos-equiv-derived-ok-rec">
116 * the "Substitution Group OK" constraint.
117 * </a>
118 *
119 * <p>
120 * Note that the above clause does <em>NOT</em> check for
121 * abstract elements. So abstract elements may still show up
122 * in the returned set.
123 *
124 * @return
125 * nun-null unmodifiable list.
126 * The returned list always contains this element decl itself.
127 */
128 Set<? extends XSElementDecl> getSubstitutables();
129
130 /**
131 * Returns true if this element declaration can be validly substituted
132 * by the given declaration.
133 *
134 * <p>
135 * Just a short cut of <tt>getSubstitutables().contain(e);</tt>
136 */
137 boolean canBeSubstitutedBy(XSElementDecl e);
138
139 // TODO: identitiy constraints
140 // TODO: scope
141
142 XmlString getDefaultValue();
143 XmlString getFixedValue();
144
145 /**
146 * Used for javadoc schema generation
147 *
148 * @return
149 * null if form attribute not present,
150 * true if form attribute present and set to qualified,
151 * false if form attribute present and set to unqualified.
152 */
153
154 Boolean getForm();
155 }
|
115 * <a href="http://www.w3.org/TR/xmlschema-1/#cos-equiv-derived-ok-rec">
116 * the "Substitution Group OK" constraint.
117 * </a>
118 *
119 * <p>
120 * Note that the above clause does <em>NOT</em> check for
121 * abstract elements. So abstract elements may still show up
122 * in the returned set.
123 *
124 * @return
125 * nun-null unmodifiable list.
126 * The returned list always contains this element decl itself.
127 */
128 Set<? extends XSElementDecl> getSubstitutables();
129
130 /**
131 * Returns true if this element declaration can be validly substituted
132 * by the given declaration.
133 *
134 * <p>
135 * Just a short cut of {@code getSubstitutables().contain(e);}
136 */
137 boolean canBeSubstitutedBy(XSElementDecl e);
138
139 // TODO: identitiy constraints
140 // TODO: scope
141
142 XmlString getDefaultValue();
143 XmlString getFixedValue();
144
145 /**
146 * Used for javadoc schema generation
147 *
148 * @return
149 * null if form attribute not present,
150 * true if form attribute present and set to qualified,
151 * false if form attribute present and set to unqualified.
152 */
153
154 Boolean getForm();
155 }
|