java.lang.Object
io.sf.carte.doc.xml.dtd.ContentModel
XML Content Model information.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContentModel
Gets an instance of ContentModel for the given DOCTYPE declaration.static ContentModel
getModel
(DocumentType docType) Gets an instance of ContentModel for the given docType.static ContentModel
Get the content model for XHTML 1.1 transitional.boolean
Checks if the content model of the given element is EMPTY.
-
Method Details
-
getModel
Gets an instance of ContentModel for the given docType.- Parameters:
docType
- the DocumentType.- Returns:
- the ContentModel for the given docType,
null
if not found. - Throws:
SAXException
- if there was an error in the document type definition or it is not supported.IOException
- if there was an I/O error while retrieving the document type definition.
-
getModel
Gets an instance of ContentModel for the given DOCTYPE declaration.- Parameters:
docTypeDecl
- the DOCTYPE declaration.- Returns:
- the ContentModel for the given DOCTYPE,
null
if not found or the DOCTYPE declaration could not be parsed. - Throws:
SAXException
- if there was an error parsing the document type declaration or it is not supported.IOException
- if there was an I/O error while retrieving the document type definition.
-
getXHTML1TransitionalModel
Get the content model for XHTML 1.1 transitional.- Returns:
- the content model.
-
isEmpty
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.
-