org.enhydra.xml.xmlc.html
Class HTMLProprietaryTags

java.lang.Object
  |
  +--org.enhydra.xml.xmlc.html.HTMLProprietaryTags

public class HTMLProprietaryTags
extends Object

Table of proprietary tags and attributes for the HTML parser.


Inner Class Summary
 class HTMLProprietaryTags.Tag
          Class used to record an tag with its content model.
 
Field Summary
static int TAG_CM_BLOCK
          Block tag content model.
static int TAG_CM_EMPTY
          Empty tag content model.
static int TAG_CM_INLINE
          Inline tag content model.
static int TAG_CM_OPT
          Closing tag is optional.
static String TAG_SET_CYBER_STUDIO
          Abobe CyberStudio proprietary tag set name.
 
Constructor Summary
HTMLProprietaryTags()
           
 
Method Summary
 void addAttribute(String attributeName)
          Add a proprietary attribute to the set of allowed attributes.
 void addTag(String tagName, int contentModel)
          Add a proprietary tag to the set of allowed tags.
 void addTag(String tagName, int contentModel, String tagSet)
          Add a proprietary tag from a tagset.
 void addTagSet(String tagSetName)
          Specify one of the pre-defined sets of proprietary tags that the parser should accept.
 Enumeration getAttributes()
          Get an enumeration of the Tag objects for the proprietary tags.
 Enumeration getTags()
          Get an enumeration of the proprietary Tag objects.
 Enumeration getTagSets()
          Get an enumeration of the tag sets that have been defined.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_SET_CYBER_STUDIO

public static final String TAG_SET_CYBER_STUDIO
Abobe CyberStudio proprietary tag set name.

TAG_CM_EMPTY

public static final int TAG_CM_EMPTY
Empty tag content model.

TAG_CM_INLINE

public static final int TAG_CM_INLINE
Inline tag content model.

TAG_CM_BLOCK

public static final int TAG_CM_BLOCK
Block tag content model.

TAG_CM_OPT

public static final int TAG_CM_OPT
Closing tag is optional.
Constructor Detail

HTMLProprietaryTags

public HTMLProprietaryTags()
Method Detail

addTagSet

public void addTagSet(String tagSetName)
               throws XMLCException
Specify one of the pre-defined sets of proprietary tags that the parser should accept. If the parser is able to handle arbitrary tags, this should be ignored. If the parser can only parse valid HTML, an error should be generated.
Parameters:
tagSetName - One of the predefined tag set names. An error is generated if its illegal.

getTagSets

public Enumeration getTagSets()
Get an enumeration of the tag sets that have been defined.

addTag

public void addTag(String tagName,
                   int contentModel)
            throws XMLCException
Add a proprietary tag to the set of allowed tags.
Parameters:
tagName - The name of the tag. The name is case insensitive.
contentModel - A bit set of the TAG_CM_* constants.

getTags

public Enumeration getTags()
Get an enumeration of the proprietary Tag objects.

addAttribute

public void addAttribute(String attributeName)
                  throws XMLCException
Add a proprietary attribute to the set of allowed attributes.
Parameters:
attributeName - The attribute name. The name is case insensitive.

getAttributes

public Enumeration getAttributes()
Get an enumeration of the Tag objects for the proprietary tags.

addTag

public void addTag(String tagName,
                   int contentModel,
                   String tagSet)
Add a proprietary tag from a tagset.


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.