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.
|
isNestingRuleaddChildRule, clearError, getChildIndex, getIdentifier, getRuleChildren, isAttributeRule, isElementRule, restrict, setChildIndex, setError, setParent, validatepublic EmptyContentRule()
public boolean accept(Element node)
accept in class GrammarRulenode - the XML Element node.public java.lang.String toString()
toString in class java.lang.Object