Class OptionalAttribute
- java.lang.Object
-
- com.thaiopensource.relaxng.output.xsd.basic.Located
-
- com.thaiopensource.relaxng.output.xsd.basic.Annotated
-
- com.thaiopensource.relaxng.output.xsd.basic.AttributeUse
-
- com.thaiopensource.relaxng.output.xsd.basic.SingleAttributeUse
-
- com.thaiopensource.relaxng.output.xsd.basic.OptionalAttribute
-
public class OptionalAttribute extends SingleAttributeUse
-
-
Constructor Summary
Constructors Constructor Description OptionalAttribute(SourceLocation location, Annotation annotation, Attribute attribute, java.lang.String defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(AttributeUseVisitor<T> visitor)booleanequals(java.lang.Object obj)AttributegetAttribute()java.lang.StringgetDefaultValue()NamegetName()SimpleTypegetType()inthashCode()booleanisOptional()-
Methods inherited from class com.thaiopensource.relaxng.output.xsd.basic.Annotated
getAnnotation
-
Methods inherited from class com.thaiopensource.relaxng.output.xsd.basic.Located
getLocation
-
-
-
-
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:
acceptin classAttributeUse
-
getName
public Name getName()
- Specified by:
getNamein classSingleAttributeUse
-
getType
public SimpleType getType()
- Specified by:
getTypein classSingleAttributeUse
-
getDefaultValue
public java.lang.String getDefaultValue()
- Overrides:
getDefaultValuein classSingleAttributeUse
-
isOptional
public boolean isOptional()
- Specified by:
isOptionalin classSingleAttributeUse
-
-