info.informatica.doc.xml.dtd
Class ContentModel

java.lang.Object
  extended by info.informatica.doc.xml.dtd.ContentModel

public class ContentModel
extends Object

XML Content Model information.

Author:
amengual at informatica dot info

Constructor Summary
protected ContentModel(DocumentTypeDeclaration dtDecl)
           
 
Method Summary
static ContentModel getModel(String docTypeDecl)
          Gets an instance of ContentModel.
static ContentModel getXHTML1TransitionalModel()
           
 boolean isEmpty(String name)
          Checks if the content model of the given element is EMPTY.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentModel

protected ContentModel(DocumentTypeDeclaration dtDecl)
                throws SAXException,
                       IOException
Throws:
SAXException
IOException
Method Detail

getModel

public static ContentModel getModel(String docTypeDecl)
                             throws SAXException
Gets an instance of ContentModel.

Returns:
the ContentModel for the given filename, or null if not found.
Throws:
SAXException

getXHTML1TransitionalModel

public static ContentModel getXHTML1TransitionalModel()

isEmpty

public boolean isEmpty(String name)
Checks if the content model of the given element is EMPTY.

Parameters:
name - the element name.
Returns:
true if the content model is EMPTY, false otherwise.


Copyright © 2011 informatica.info. All Rights Reserved.