public class EmptyContentRule extends SimpleRule
An EmptyContentRule is created for every DTD grammar rule production that specifies EMPTY content. An EmptyContentRule is created for any XSD complex type which has only Attributes and no Element children.
identifier, parent
Constructor and Description |
---|
EmptyContentRule()
Creates a EmptyContentRule.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Element node)
Reports whether this EmptyContentRule accepts an Element node.
|
java.lang.String |
toString()
Returns a pretty representation of this EmptyContentRule.
|
isNestingRule
addChildRule, clearError, getChildIndex, getIdentifier, getRuleChildren, isAttributeRule, isElementRule, restrict, setChildIndex, setError, setParent, validate
public EmptyContentRule()
public boolean accept(Element node)
accept
in class GrammarRule
node
- the XML Element node.public java.lang.String toString()
toString
in class java.lang.Object