All Packages Class Hierarchy This Package Previous Next Index
Class xe.xe_AttListDeclParser
java.lang.Object
|
+----xe.xe_Parser
|
+----xe.xe_AttListDeclParser
- public class xe_AttListDeclParser
- extends xe_Parser
Parser for an attribute list declaration within the DTD of an XML document,
assuming the beginning ('
-
xe_AttListDeclParser()
-
-
parse()
- Parse the body of an attribute list declaration.
-
parseAttDecl(xg_AttListDecl, xe_Token)
- Parse the declaration of an attribute, assuming that its name has already
been parsed (and is in the InputStartToken).
-
parseAttDefault(xg_AttDecl)
- Parse the default value for an attribute declaration, assuming all its
preceding parts have already been parsed.
-
parseEnumeratedAtt(xg_AttDecl, xe_Token)
- Parse an enumerated attribute declaration, which defines a list of values
this attribute may have.
xe_AttListDeclParser
public xe_AttListDeclParser()
parse
public xg_Node parse() throws xm_ParseException, IOException
- Parse the body of an attribute list declaration.
- Returns:
- The parsed AttListDecl
- Throws: xm_ParseException
- XML wellformedness error
- Throws: IOException
- Error reading from source reader
- Overrides:
- parse in class xe_Parser
parseAttDecl
public xe_Token parseAttDecl(xg_AttListDecl InputAttListDecl,
xe_Token InputStartToken) throws xm_ParseException, IOException
- Parse the declaration of an attribute, assuming that its name has already
been parsed (and is in the InputStartToken). It should have the form:
Name AttType Default
or Name (Value|Value|...) Default
===>
- Parameters:
- InputAttListDecl - The AttListDecl currently being parsed
- InputStartToken - The first token of the external subset
- Throws: xm_ParseException
- XML wellformedness error
- Throws: IOException
- Error reading from source reader
parseEnumeratedAtt
public void parseEnumeratedAtt(xg_AttDecl InputAttDecl,
xe_Token InputOpenParenToken) throws xm_ParseException, IOException
- Parse an enumerated attribute declaration, which defines a list of values
this attribute may have. We assume its name, NOTATION keyword (if present)
and opening parenthesis have already been parsed. It has the rough form:
Name [NOTATION](Value|Value|...) Default
===============>
- Parameters:
- InputAttDecl - The attribute declaration currently being parsed
- InputOpenParenToken - The open parenthesis token
- Throws: xm_ParseException
- XML wellformedness error
- Throws: IOException
- Error reading from source reader
parseAttDefault
public void parseAttDefault(xg_AttDecl InputAttDecl) throws xm_ParseException, IOException
- Parse the default value for an attribute declaration, assuming all its
preceding parts have already been parsed. It has the rough form:
#REQUIRED
or #IMPLIED
or [#FIXED] "DefaultValue"
- Parameters:
- InputAttDecl - The attribute declaration currently being
parsed
- Throws: xm_ParseException
- XML wellformedness error
- Throws: IOException
- Error reading from source reader
All Packages Class Hierarchy This Package Previous Next Index