Interface XMQDtd

All Superinterfaces:
XMQNode

public interface XMQDtd extends XMQNode
A document type definition, the internal subset of a doctype. The children are the declarations: entity declarations, element declarations, attribute list declarations and notation declarations, plus the parameter entity references kept as written.
  • Method Details

    • externalId

      String externalId()
      Returns the public id of the doctype, eg in <!DOCTYPE library PUBLIC "libxmq" "xmq.dtd">.
      Returns:
      The public id or null.
    • systemId

      String systemId()
      Returns the system id of the doctype.
      Returns:
      The system id or null.
    • addEntity

      Add an entity declaration to the dtd.
      Parameters:
      e - The entity declaration.
      Returns:
      The entity declaration.
    • getEntity

      XMQEntityDecl getEntity(String name)
      Find an entity declaration by name.
      Parameters:
      name - The entity name.
      Returns:
      The entity declaration or null.
    • getParameterEntity

      XMQEntityDecl getParameterEntity(String name)
      Find a parameter entity declaration by name.
      Parameters:
      name - The parameter entity name.
      Returns:
      The parameter entity declaration or null.
    • hasDeclarations

      boolean hasDeclarations()
      Returns true if the dtd has any declarations.
      Returns:
      True if there are entity, element, attribute or notation declarations.