org.merlotxml.util.xml
Interface DTDAttribute

All Superinterfaces:
DTDConstants
All Known Implementing Classes:
DTDAttributeImpl

Deprecated. Use GrammarSimpleType.

public interface DTDAttribute
extends DTDConstants

This interface provides access to an attribute

Author:
Kelly A. Campbell

Field Summary
 
Fields inherited from interface org.merlotxml.util.xml.DTDConstants
ANY, CDATA, COMMENT, COMMENT_KEY, CONTENT_CONCAT, CONTENT_GROUP, CONTENT_LEAF, CONTENT_ONEMAX, CONTENT_OR, CONTENT_PLUS, CONTENT_SINGLE, CONTENT_STAR, EMPTY, ENTITIES, ENTITY, FIXED, GROUP, ID, IDREF, IDREFS, IMPLIED, NMTOKEN, NMTOKENS, NONE, NOTATION, PCDATA, PCDATA_KEY, PROCESSING_INSTRUCTION, PROCESSING_INSTRUCTION_KEY, REQUIRED, TOKEN_GROUP
 
Method Summary
 int getDefaultType()
          Deprecated. Use GrammarSimpleType.
 java.lang.String getDefaultValue()
          Deprecated. Use GrammarSimpleType.
 java.lang.String getName()
          Deprecated. Use GrammarSimpleType.
 java.util.Enumeration getTokens()
          Deprecated. Use GrammarSimpleType.
 int getType()
          Deprecated. Use GrammarSimpleType.
 

Method Detail

getName

public java.lang.String getName()
Deprecated. Use GrammarSimpleType.

Returns the attribute name. i.e. <!ATTLIST elname attname...

This would return "attname" in that case.


getType

public int getType()
Deprecated. Use GrammarSimpleType.

returns the attribute type, either ANY, CDATA, TOKEN_GROUP, NMTOKEN, NMTOKENS. see DTDConstants for these definitions.


getTokens

public java.util.Enumeration getTokens()
Deprecated. Use GrammarSimpleType.

returns an enumeration consisting of String objects that are the tokens for this attribute definition


getDefaultValue

public java.lang.String getDefaultValue()
Deprecated. Use GrammarSimpleType.

returns the default value if none is specified as a String


getDefaultType

public int getDefaultType()
Deprecated. Use GrammarSimpleType.

Returns IMPLIED or REQUIRED, or NONE if nothing is specified