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 Object
implements SchemaLocalAttribute, SchemaWSDLArrayType
-
Field Summary
Fields inherited from interface org.apache.xmlbeans.SchemaLocalAttribute
OPTIONAL, PROHIBITED, REQUIRED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the Schema annotation object or null if none presentThe default value as plain text.The default value as a strongly-typed value.Returns the maxOccurs value for this particle, or null if it is unbounded.Returns the minOccurs value for this particle.getName()
Returns the form-unqualified-or-qualified name.getType()
Returns the type of this use.int
getUse()
Returns user-specific information.void
init
(QName name, SchemaType.Ref typeref, int use, String deftext, XmlObject parseObject, XmlValueRef defvalue, boolean isFixed, SOAPArrayType wsdlArray, SchemaAnnotation ann, Object userData) boolean
True if this use is an attributeboolean
True if a default is supplied.boolean
isFixed()
True if the value is fixed.boolean
True if nillable; always false for attributes.boolean
void
resolveTypeRef
(SchemaType.Ref typeref) void
setDefaultValue
(XmlValueRef defaultRef)
-
Constructor Details
-
SchemaLocalAttributeImpl
public SchemaLocalAttributeImpl()
-
-
Method Details
-
init
public void init(QName name, SchemaType.Ref typeref, int use, String deftext, XmlObject parseObject, XmlValueRef defvalue, boolean isFixed, SOAPArrayType wsdlArray, SchemaAnnotation ann, Object userData) -
isTypeResolved
public boolean isTypeResolved() -
resolveTypeRef
-
getUse
public int getUse()Description copied from interface:SchemaLocalAttribute
ReturnsSchemaLocalAttribute.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:
getUse
in interfaceSchemaLocalAttribute
-
getName
Description copied from interface:SchemaField
Returns the form-unqualified-or-qualified name.- Specified by:
getName
in interfaceSchemaField
-
getDefaultText
Description copied from interface:SchemaField
The default value as plain text. SeeSchemaField.isDefault()
andSchemaField.isFixed()
.- Specified by:
getDefaultText
in interfaceSchemaField
-
isDefault
public boolean isDefault()Description copied from interface:SchemaField
True if a default is supplied. IfSchemaField.isFixed()
, then isDefault is always true.- Specified by:
isDefault
in interfaceSchemaField
-
isFixed
public boolean isFixed()Description copied from interface:SchemaField
True if the value is fixed.- Specified by:
isFixed
in interfaceSchemaField
-
isAttribute
public boolean isAttribute()Description copied from interface:SchemaField
True if this use is an attribute- Specified by:
isAttribute
in interfaceSchemaField
-
getAnnotation
Description copied from interface:SchemaAnnotated
Returns the Schema annotation object or null if none present- Specified by:
getAnnotation
in interfaceSchemaAnnotated
-
getType
Description copied from interface:SchemaField
Returns the type of this use.- Specified by:
getType
in interfaceSchemaField
-
getTypeRef
-
getMinOccurs
Description copied from interface:SchemaField
Returns the minOccurs value for this particle. If it is not specified explicitly, this defaults to BigInteger.ONE.- Specified by:
getMinOccurs
in interfaceSchemaField
-
getMaxOccurs
Description copied from interface:SchemaField
Returns 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:
getMaxOccurs
in interfaceSchemaField
-
isNillable
public boolean isNillable()Description copied from interface:SchemaField
True if nillable; always false for attributes.- Specified by:
isNillable
in interfaceSchemaField
-
getWSDLArrayType
- Specified by:
getWSDLArrayType
in interfaceSchemaWSDLArrayType
-
getDefaultValue
Description copied from interface:SchemaField
The default value as a strongly-typed value. SeeSchemaField.isDefault()
andSchemaField.isFixed()
.- Specified by:
getDefaultValue
in interfaceSchemaField
-
setDefaultValue
-
getUserData
Description copied from interface:SchemaField
Returns user-specific information.- Specified by:
getUserData
in interfaceSchemaField
- See Also:
-