Class Attribute
- 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.Attribute
-
- All Implemented Interfaces:
Structure
public class Attribute extends SingleAttributeUse implements Structure
-
-
Constructor Summary
Constructors Constructor Description Attribute(SourceLocation location, Annotation annotation, Name name, SimpleType type)type may be null, indicating any type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(AttributeUseVisitor<T> visitor)<T> Taccept(StructureVisitor<T> visitor)booleanequals(java.lang.Object obj)NamegetName()SimpleTypegetType()inthashCode()booleanisOptional()-
Methods inherited from class com.thaiopensource.relaxng.output.xsd.basic.SingleAttributeUse
getDefaultValue
-
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
-
Attribute
public Attribute(SourceLocation location, Annotation annotation, Name name, SimpleType type)
type may be null, indicating any type
-
-
Method Detail
-
getName
public Name getName()
- Specified by:
getNamein interfaceStructure- Specified by:
getNamein classSingleAttributeUse
-
getType
public SimpleType getType()
- Specified by:
getTypein classSingleAttributeUse
-
accept
public <T> T accept(AttributeUseVisitor<T> visitor)
- Specified by:
acceptin classAttributeUse
-
accept
public <T> T accept(StructureVisitor<T> visitor)
-
isOptional
public boolean isOptional()
- Specified by:
isOptionalin classSingleAttributeUse
-
-