Package org.apache.xmlbeans.impl.schema
Class SchemaLocalAttributeImpl
- java.lang.Object
-
- org.apache.xmlbeans.impl.schema.SchemaLocalAttributeImpl
-
- All Implemented Interfaces:
SchemaAnnotated,SchemaField,SchemaLocalAttribute,SchemaWSDLArrayType
- Direct Known Subclasses:
SchemaGlobalAttributeImpl
public class SchemaLocalAttributeImpl extends java.lang.Object implements SchemaLocalAttribute, SchemaWSDLArrayType
-
-
Field Summary
-
Fields inherited from interface org.apache.xmlbeans.SchemaLocalAttribute
OPTIONAL, PROHIBITED, REQUIRED
-
-
Constructor Summary
Constructors Constructor Description SchemaLocalAttributeImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaAnnotationgetAnnotation()Returns the Schema annotation object or null if none presentjava.lang.StringgetDefaultText()The default value as plain text.XmlAnySimpleTypegetDefaultValue()The default value as a strongly-typed value.java.math.BigIntegergetMaxOccurs()Returns the maxOccurs value for this particle, or null if it is unbounded.java.math.BigIntegergetMinOccurs()Returns the minOccurs value for this particle.javax.xml.namespace.QNamegetName()Returns the form-unqualified-or-qualified name.SchemaTypegetType()Returns the type of this use.SchemaType.RefgetTypeRef()intgetUse()java.lang.ObjectgetUserData()Returns user-specific information.SOAPArrayTypegetWSDLArrayType()voidinit(javax.xml.namespace.QName name, SchemaType.Ref typeref, int use, java.lang.String deftext, XmlObject parseObject, XmlValueRef defvalue, boolean isFixed, SOAPArrayType wsdlArray, SchemaAnnotation ann, java.lang.Object userData)booleanisAttribute()True if this use is an attributebooleanisDefault()True if a default is supplied.booleanisFixed()True if the value is fixed.booleanisNillable()True if nillable; always false for attributes.booleanisTypeResolved()voidresolveTypeRef(SchemaType.Ref typeref)voidsetDefaultValue(XmlValueRef defaultRef)
-
-
-
Method Detail
-
init
public void init(javax.xml.namespace.QName name, SchemaType.Ref typeref, int use, java.lang.String deftext, XmlObject parseObject, XmlValueRef defvalue, boolean isFixed, SOAPArrayType wsdlArray, SchemaAnnotation ann, java.lang.Object userData)
-
isTypeResolved
public boolean isTypeResolved()
-
resolveTypeRef
public void resolveTypeRef(SchemaType.Ref typeref)
-
getUse
public int getUse()
Description copied from interface:SchemaLocalAttributeReturnsSchemaLocalAttribute.PROHIBITED,SchemaLocalAttribute.OPTIONAL, orSchemaLocalAttribute.REQUIRED. (Actually, never returns PROHIBITED because the schema specificaion states that a prohibited attribute is equivalent to no attribute at all, so a prohibited attribute will never be present in the compiled model.)- Specified by:
getUsein interfaceSchemaLocalAttribute
-
getName
public javax.xml.namespace.QName getName()
Description copied from interface:SchemaFieldReturns the form-unqualified-or-qualified name.- Specified by:
getNamein interfaceSchemaField
-
getDefaultText
public java.lang.String getDefaultText()
Description copied from interface:SchemaFieldThe default value as plain text. SeeSchemaField.isDefault()andSchemaField.isFixed().- Specified by:
getDefaultTextin interfaceSchemaField
-
isDefault
public boolean isDefault()
Description copied from interface:SchemaFieldTrue if a default is supplied. IfSchemaField.isFixed(), then isDefault is always true.- Specified by:
isDefaultin interfaceSchemaField
-
isFixed
public boolean isFixed()
Description copied from interface:SchemaFieldTrue if the value is fixed.- Specified by:
isFixedin interfaceSchemaField
-
isAttribute
public boolean isAttribute()
Description copied from interface:SchemaFieldTrue if this use is an attribute- Specified by:
isAttributein interfaceSchemaField
-
getAnnotation
public SchemaAnnotation getAnnotation()
Description copied from interface:SchemaAnnotatedReturns the Schema annotation object or null if none present- Specified by:
getAnnotationin interfaceSchemaAnnotated
-
getType
public SchemaType getType()
Description copied from interface:SchemaFieldReturns the type of this use.- Specified by:
getTypein interfaceSchemaField
-
getTypeRef
public SchemaType.Ref getTypeRef()
-
getMinOccurs
public java.math.BigInteger getMinOccurs()
Description copied from interface:SchemaFieldReturns the minOccurs value for this particle. If it is not specified explicitly, this defaults to BigInteger.ONE.- Specified by:
getMinOccursin interfaceSchemaField
-
getMaxOccurs
public java.math.BigInteger getMaxOccurs()
Description copied from interface:SchemaFieldReturns the maxOccurs value for this particle, or null if it is unbounded. If it is not specified explicitly, this defaults to BigInteger.ONE.- Specified by:
getMaxOccursin interfaceSchemaField
-
isNillable
public boolean isNillable()
Description copied from interface:SchemaFieldTrue if nillable; always false for attributes.- Specified by:
isNillablein interfaceSchemaField
-
getWSDLArrayType
public SOAPArrayType getWSDLArrayType()
- Specified by:
getWSDLArrayTypein interfaceSchemaWSDLArrayType
-
getDefaultValue
public XmlAnySimpleType getDefaultValue()
Description copied from interface:SchemaFieldThe default value as a strongly-typed value. SeeSchemaField.isDefault()andSchemaField.isFixed().- Specified by:
getDefaultValuein interfaceSchemaField
-
setDefaultValue
public void setDefaultValue(XmlValueRef defaultRef)
-
getUserData
public java.lang.Object getUserData()
Description copied from interface:SchemaFieldReturns user-specific information.- Specified by:
getUserDatain interfaceSchemaField- See Also:
SchemaBookmark
-
-