dk.brics.xmlgraph.validator
Class ContentDescription

java.lang.Object
  extended by dk.brics.xmlgraph.validator.ContentDescription

public class ContentDescription
extends Object

Result from ContentDescriptionBuilder.


Method Summary
 Automaton getContentAutomaton()
          Returns content automaton.
 Automaton getElementNameAutomaton()
          Returns element names as automaton.
 Collection<Automaton> getElementNames()
          Returns element names.
 boolean hasNonWSText()
          Returns presence of non-whitespace text.
 boolean hasText()
          Returns presence of text nodes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContentAutomaton

public Automaton getContentAutomaton()
Returns content automaton.

Returns:
automaton representing the contents

getElementNameAutomaton

public Automaton getElementNameAutomaton()
Returns element names as automaton.

Returns:
automaton representing element names

getElementNames

public Collection<Automaton> getElementNames()
Returns element names.

Returns:
collection of element names

hasNonWSText

public boolean hasNonWSText()
Returns presence of non-whitespace text.

Returns:
true if non-whitespace text is present

hasText

public boolean hasText()
Returns presence of text nodes.

Returns:
true if a text node is present


Copyright © 2005-2010 Anders Møller.