Class NodeException.TypeMismatch

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    NodeException

    public static class NodeException.TypeMismatch
    extends NodeException
    Reports that the type of node used does not implement the class that is required in the given parentType node's content. For example, tableCell nodes cannot contain text nodes directly (they must be wrapped inside of a paragraph), and this exception is thrown if a document tries to place one there.
    See Also:
    Serialized Form
    • Constructor Detail

      • TypeMismatch

        public TypeMismatch​(String parentType,
                            Class<? extends Node> requiredClass,
                            String type)
    • Method Detail

      • parentType

        public String parentType()
      • requiredClass

        public Class<? extends Node> requiredClass()