convert.relaxng.output.xsd.basic
Class OptionalAttribute

java.lang.Object
  extended by convert.relaxng.output.xsd.basic.Located
      extended by convert.relaxng.output.xsd.basic.Annotated
          extended by convert.relaxng.output.xsd.basic.AttributeUse
              extended by convert.relaxng.output.xsd.basic.SingleAttributeUse
                  extended by convert.relaxng.output.xsd.basic.OptionalAttribute

public class OptionalAttribute
extends SingleAttributeUse


Constructor Summary
OptionalAttribute(SourceLocation location, Annotation annotation, Attribute attribute, java.lang.String defaultValue)
           
 
Method Summary
<T> T
accept(AttributeUseVisitor<T> visitor)
           
 boolean equals(java.lang.Object obj)
           
 Attribute getAttribute()
           
 java.lang.String getDefaultValue()
           
 Name getName()
           
 SimpleType getType()
           
 int hashCode()
           
 boolean isOptional()
           
 
Methods inherited from class convert.relaxng.output.xsd.basic.Annotated
getAnnotation
 
Methods inherited from class convert.relaxng.output.xsd.basic.Located
getLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionalAttribute

public OptionalAttribute(SourceLocation location,
                         Annotation annotation,
                         Attribute attribute,
                         java.lang.String defaultValue)
Method Detail

getAttribute

public Attribute getAttribute()

accept

public <T> T accept(AttributeUseVisitor<T> visitor)
Specified by:
accept in class AttributeUse

getName

public Name getName()
Specified by:
getName in class SingleAttributeUse

getType

public SimpleType getType()
Specified by:
getType in class SingleAttributeUse

getDefaultValue

public java.lang.String getDefaultValue()
Overrides:
getDefaultValue in class SingleAttributeUse

isOptional

public boolean isOptional()
Specified by:
isOptional in class SingleAttributeUse

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class Annotated

hashCode

public int hashCode()
Overrides:
hashCode in class Annotated