Package org.apache.xmlbeans.impl.schema
Class SchemaLocalElementImpl
- java.lang.Object
-
- org.apache.xmlbeans.impl.schema.SchemaParticleImpl
-
- org.apache.xmlbeans.impl.schema.SchemaLocalElementImpl
-
- All Implemented Interfaces:
SchemaAnnotated,SchemaField,SchemaLocalElement,SchemaParticle,SchemaWSDLArrayType
- Direct Known Subclasses:
SchemaGlobalElementImpl
public class SchemaLocalElementImpl extends SchemaParticleImpl implements SchemaLocalElement, SchemaWSDLArrayType
-
-
Constructor Summary
Constructors Constructor Description SchemaLocalElementImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanblockExtension()True if extension is blocked.booleanblockRestriction()True if restriction is blocked.booleanblockSubstitution()True if element substitution is blocked.SchemaAnnotationgetAnnotation()Returns the Schema annotation object or null if none presentSchemaIdentityConstraint.Ref[]getIdentityConstraintRefs()SchemaIdentityConstraint[]getIdentityConstraints()Returns all the Key, KeyRef, and Unique constraints on this element.SOAPArrayTypegetWSDLArrayType()booleanisAbstract()True if this element is prohibited in content.voidsetAbstract(boolean abs)voidsetAnnotation(SchemaAnnotation ann)voidsetBlock(boolean extension, boolean restriction, boolean substitution)voidsetIdentityConstraints(SchemaIdentityConstraint.Ref[] constraints)voidsetWsdlArrayType(SOAPArrayType arrayType)-
Methods inherited from class org.apache.xmlbeans.impl.schema.SchemaParticleImpl
acceptedStartNames, canStartWithElement, countOfParticleChild, getDefaultText, getDefaultValue, getExcludeNextSet, getIntMaxOccurs, getIntMinOccurs, getMaxOccurs, getMinOccurs, getName, getParticleChild, getParticleChildren, getParticleType, getType, getUserData, getWildcardProcess, getWildcardSet, hasTransitionNotes, hasTransitionRules, isAttribute, isDefault, isDeterministic, isFixed, isNillable, isSingleton, isSkippable, isTypeResolved, resolveTypeRef, setDefault, setDefaultValue, setImmutable, setMaxOccurs, setMinOccurs, setNameAndTypeRef, setNillable, setParticleChildren, setParticleType, setTransitionNotes, setTransitionRules, setUserData, setWildcardProcess, setWildcardSet
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.xmlbeans.SchemaField
getDefaultText, getDefaultValue, getMaxOccurs, getMinOccurs, getName, getType, getUserData, isAttribute, isDefault, isFixed, isNillable
-
-
-
-
Method Detail
-
blockExtension
public boolean blockExtension()
Description copied from interface:SchemaLocalElementTrue if extension is blocked.- Specified by:
blockExtensionin interfaceSchemaLocalElement
-
blockRestriction
public boolean blockRestriction()
Description copied from interface:SchemaLocalElementTrue if restriction is blocked.- Specified by:
blockRestrictionin interfaceSchemaLocalElement
-
blockSubstitution
public boolean blockSubstitution()
Description copied from interface:SchemaLocalElementTrue if element substitution is blocked.- Specified by:
blockSubstitutionin interfaceSchemaLocalElement
-
isAbstract
public boolean isAbstract()
Description copied from interface:SchemaLocalElementTrue if this element is prohibited in content. Only sensible if this is the head of a substitution group; then only substitution group members can appear.Although local elements cannot be abstract, if an element use is a ref to a global element, then the flag from the global element is copied in to the local element where the use occurs.
- Specified by:
isAbstractin interfaceSchemaLocalElement
-
setAbstract
public void setAbstract(boolean abs)
-
setBlock
public void setBlock(boolean extension, boolean restriction, boolean substitution)
-
setAnnotation
public void setAnnotation(SchemaAnnotation ann)
-
setWsdlArrayType
public void setWsdlArrayType(SOAPArrayType arrayType)
-
getAnnotation
public SchemaAnnotation getAnnotation()
Description copied from interface:SchemaAnnotatedReturns the Schema annotation object or null if none present- Specified by:
getAnnotationin interfaceSchemaAnnotated
-
getWSDLArrayType
public SOAPArrayType getWSDLArrayType()
- Specified by:
getWSDLArrayTypein interfaceSchemaWSDLArrayType
-
setIdentityConstraints
public void setIdentityConstraints(SchemaIdentityConstraint.Ref[] constraints)
-
getIdentityConstraints
public SchemaIdentityConstraint[] getIdentityConstraints()
Description copied from interface:SchemaLocalElementReturns all the Key, KeyRef, and Unique constraints on this element.- Specified by:
getIdentityConstraintsin interfaceSchemaLocalElement
-
getIdentityConstraintRefs
public SchemaIdentityConstraint.Ref[] getIdentityConstraintRefs()
-
-