java.lang.Object
org.merlotxml.util.xml.xml4j.DTDAttributeImpl
- All Implemented Interfaces:
- org.merlotxml.util.xml.DTDAttribute, org.merlotxml.util.xml.DTDConstants
- public class DTDAttributeImpl
- extends java.lang.Object
- implements org.merlotxml.util.xml.DTDAttribute, org.merlotxml.util.xml.DTDConstants
DTDAttribute
- Version:
- $Id: DTDAttributeImpl.java,v 1.1.1.1 2001/07/02 15:41:28 flament Exp $
| 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, GROUP, ID, IDREF, IDREFS, IMPLIED, NMTOKEN, NMTOKENS, NONE, PCDATA, PCDATA_KEY, PROCESSING_INSTRUCTION, PROCESSING_INSTRUCTION_KEY, REQUIRED, TOKEN_GROUP |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_doc
private DTD _doc
_attDef
private AttDef _attDef
DTDAttributeImpl
public DTDAttributeImpl(DTD doc,
AttDef attr)
getName
public java.lang.String getName()
- Description copied from interface:
org.merlotxml.util.xml.DTDAttribute
- Returns the attribute name. i.e. <!ATTLIST elname attname...
This would return "attname" in that case.
- Specified by:
getName in interface org.merlotxml.util.xml.DTDAttribute
getType
public int getType()
- Description copied from interface:
org.merlotxml.util.xml.DTDAttribute
- returns the attribute type, either ANY, CDATA,
TOKEN_GROUP, NMTOKEN, NMTOKENS.
see DTDConstants for these definitions.
- Specified by:
getType in interface org.merlotxml.util.xml.DTDAttribute
getDefaultType
public int getDefaultType()
- Description copied from interface:
org.merlotxml.util.xml.DTDAttribute
- Returns IMPLIED or REQUIRED, or NONE if nothing is specified
- Specified by:
getDefaultType in interface org.merlotxml.util.xml.DTDAttribute
getTokens
public java.util.Enumeration getTokens()
- Description copied from interface:
org.merlotxml.util.xml.DTDAttribute
- returns an enumeration consisting of String objects that are the
tokens for this attribute definition
- Specified by:
getTokens in interface org.merlotxml.util.xml.DTDAttribute
getDefaultValue
public java.lang.String getDefaultValue()
- Description copied from interface:
org.merlotxml.util.xml.DTDAttribute
- returns the default value if none is specified as a String
- Specified by:
getDefaultValue in interface org.merlotxml.util.xml.DTDAttribute