
org.apache.ws.jaxme.xs.xml.impl.XsTLocalElementImpl Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2003, 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.ws.jaxme.xs.xml.impl;
import org.apache.ws.jaxme.xs.xml.*;
/** Implementation of the xs:localElement
type, as
* specified by:
*
* <xs:complexType name="localElement">
* <xs:complexContent>
* <xs:restriction base="xs:element">
* <xs:sequence>
* <xs:element ref="xs:annotation" minOccurs="0"/>
* <xs:choice minOccurs="0">
* <xs:element name="simpleType" type="xs:localSimpleType"/>
* <xs:element name="complexType" type="xs:localComplexType"/>
* </xs:choice>
* <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
* </xs:sequence>
* <xs:attribute name="substitutionGroup" use="prohibited"/>
* <xs:attribute name="final" use="prohibited"/>
* <xs:attribute name="abstract" use="prohibited"/>
* </xs:restriction>
* </xs:complexContent>
* </xs:complexType>
*
* Implementation note: This class doesn't specify any
* additional methods. It only disables the 'substitutionGroup',
* 'final', and 'abstract' attributes.
*
* @author Jochen Wiedmann
*/
public class XsTLocalElementImpl extends XsTElementImpl implements XsTLocalElement {
protected XsTLocalElementImpl(XsObject pParent) {
super(pParent);
}
public void setSubstitutionGroup(XsQName pSubstitutionGroup) {
throw new IllegalArgumentException("A local element must not have its 'substitutionGroup' attribute set.");
}
public void setSubstitutionGroup(String pSubstitutionGroup) {
throw new IllegalArgumentException("A local element must not have its 'substitutionGroup' attribute set.");
}
public void setFinal(XsDerivationSet pFinal) {
throw new IllegalArgumentException("A local element must not have its 'final' attribute set.");
}
public void setAbstract(boolean pAbstract) {
throw new IllegalArgumentException("A local element must not have its 'abstract' attribute set.");
}
public boolean isGlobal() { return false; }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy