fr.tireme.schemadoc.SDSchema
Interface SDAttribute

All Superinterfaces:
SDConcreteComponent, SDConstraint, SDSchemaContent
All Known Implementing Classes:
XSDAttributeDeclarationWrapp

public interface SDAttribute
extends SDSchemaContent, SDConstraint

Author:
Mike Niemaz (niemaz@xrce.xerox.com)

Field Summary
 
Fields inherited from interface fr.tireme.schemadoc.SDSchema.SDSchemaContent
TYPE_ATTRIBUTE, TYPE_ATTRIBUTE_LABEL, TYPE_ATTRIBUTEGROUP, TYPE_ATTRIBUTEGROUP_LABEL, TYPE_COMPLEXTYPE, TYPE_COMPLEXTYPE_LABEL, TYPE_ELEMENT, TYPE_ELEMENT_LABEL, TYPE_GROUP, TYPE_GROUP_LABEL, TYPE_NOTATION, TYPE_NOTATION_LABEL, TYPE_SIMPLETYPE, TYPE_SIMPLETYPE_LABEL
 
Method Summary
 SDAttribute getResolvedAttributeDeclaration(SDSchema schema)
          Gets the referenced attribute
 SDAnnotation getSchemaAnnotation()
          Returns the annotation on this attribute
 SDSimpleType getTypeDefinition(SDSchema schema)
          Gets the simpleType of this attribute
 boolean isAttributeDeclarationReference()
          Indicates if this attribute is a reference
 boolean isSetConstraint()
          Returns whether the value of the 'Constraint' attribute is set.
 boolean isTypeAnonymous()
          Returns true if the attribute is based on a pre-defined type
 
Methods inherited from interface fr.tireme.schemadoc.SDSchema.SDSchemaContent
getName, getQName, getSchema, getTargetNamespace, getType, isGlobal
 
Methods inherited from interface fr.tireme.schemadoc.SDSchema.SDConcreteComponent
cloneObject, getContainerDomElement, getDomElement, getID, getLocalRootID, getWrappedObject, isAny, isAnyAttribute, isContainerNull, setID
 
Methods inherited from interface fr.tireme.schemadoc.SDSchema.SDConstraint
getDefaultValue, getFixedValue, isDefaultConstraint, isFixedConstraint
 

Method Detail

getTypeDefinition

SDSimpleType getTypeDefinition(SDSchema schema)
Gets the simpleType of this attribute

Parameters:
schema - - root schema
Returns:
SDSimpleType - the simpleType of this attribute

getResolvedAttributeDeclaration

SDAttribute getResolvedAttributeDeclaration(SDSchema schema)
Gets the referenced attribute

Parameters:
schema - - root schema
Returns:
SDAttribute - the referenced attribute

isAttributeDeclarationReference

boolean isAttributeDeclarationReference()
Indicates if this attribute is a reference

Returns:
boolean - true if this attribute is a reference

isTypeAnonymous

boolean isTypeAnonymous()
Returns true if the attribute is based on a pre-defined type

Returns:
boolean - true or false

getSchemaAnnotation

SDAnnotation getSchemaAnnotation()
Returns the annotation on this attribute

Returns:
SDAnnotation - The annotation on this attribute, or null

isSetConstraint

boolean isSetConstraint()
Returns whether the value of the 'Constraint' attribute is set.

Returns:
boolean