fr.tireme.schemadoc.SDSchema.XSD
Class XSDAttributeUseWrapp

java.lang.Object
  extended by fr.tireme.schemadoc.SDSchema.XSD.SDConcreteComponentImpl
      extended by fr.tireme.schemadoc.SDSchema.XSD.XSDAttributeUseWrapp
All Implemented Interfaces:
SDAttributeUse, SDConcreteComponent, SDConstraint

public class XSDAttributeUseWrapp
extends SDConcreteComponentImpl
implements SDAttributeUse

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

Constructor Summary
XSDAttributeUseWrapp(org.eclipse.xsd.XSDAttributeUse xsdAttributeUse)
          Constructor of the XSDAttributeUseWrapp object
 
Method Summary
 SDAttribute getAttributeDeclaration()
          Gets the attribute associated with this attributeUse
 SDAttribute getContent()
          Gets the attribute associated with this attributeUse
 java.lang.String getDefaultValue()
          Gets the value of the default constraint, if any
 java.lang.String getFixedValue()
          Gets the value of the fixed constraint, if any
 int getUse()
          Gets the use form
 boolean isDefaultConstraint()
          Returns true if a default constraint have been set to this attribute, false otherwise
 boolean isFixedConstraint()
          Returns true if a fixed constraint have been set to this attribute, false otherwise
 boolean isRef()
          Check whether the attached attribute is a reference or is defined locally
 boolean isSetConstraint()
          Returns whether the value of the 'Constraint' attribute is set.
 
Methods inherited from class fr.tireme.schemadoc.SDSchema.XSD.SDConcreteComponentImpl
cloneObject, getContainerDomElement, getDomElement, getID, getLocalRootID, getWrappedObject, isAny, isAnyAttribute, isContainerNull, setID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.tireme.schemadoc.SDSchema.SDConcreteComponent
cloneObject, getContainerDomElement, getDomElement, getID, getLocalRootID, getWrappedObject, isAny, isAnyAttribute, isContainerNull, setID
 

Constructor Detail

XSDAttributeUseWrapp

public XSDAttributeUseWrapp(org.eclipse.xsd.XSDAttributeUse xsdAttributeUse)
Constructor of the XSDAttributeUseWrapp object

Parameters:
xsdAttributeUse - the eclipse xsd wrapped attributeUse object
Method Detail

getAttributeDeclaration

public SDAttribute getAttributeDeclaration()
Gets the attribute associated with this attributeUse

Specified by:
getAttributeDeclaration in interface SDAttributeUse
Returns:
the attribute associated with this attributeUse

getContent

public SDAttribute getContent()
Gets the attribute associated with this attributeUse

Specified by:
getContent in interface SDAttributeUse
Returns:
the attribute associated with this attributeUse

isRef

public boolean isRef()
Check whether the attached attribute is a reference or is defined locally

Specified by:
isRef in interface SDAttributeUse
Returns:
boolean - true or false

getUse

public int getUse()
Gets the use form

Specified by:
getUse in interface SDAttributeUse
Returns:
the use form or 0 if the is no use

isSetConstraint

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

Specified by:
isSetConstraint in interface SDAttributeUse
Returns:
boolean

isDefaultConstraint

public boolean isDefaultConstraint()
Returns true if a default constraint have been set to this attribute, false otherwise

Specified by:
isDefaultConstraint in interface SDConstraint
Returns:
boolean -

isFixedConstraint

public boolean isFixedConstraint()
Returns true if a fixed constraint have been set to this attribute, false otherwise

Specified by:
isFixedConstraint in interface SDConstraint
Returns:
boolean -

getFixedValue

public java.lang.String getFixedValue()
Gets the value of the fixed constraint, if any

Specified by:
getFixedValue in interface SDConstraint
Returns:
String - fixed value or null

getDefaultValue

public java.lang.String getDefaultValue()
Gets the value of the default constraint, if any

Specified by:
getDefaultValue in interface SDConstraint
Returns:
String - default value or null