|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--xylia.sax.contentmodelparser.DefaultContentModel
A content model able to check validity of a sequence of children. Title: Xylia Description: Copyright: Copyright (c) 2001 Company: Memorial
Fields inherited from interface xylia.sax.contentmodelparser.ContentModelKinds |
ANY, CHILDREN, EMPTY, MIXED |
Constructor Summary | |
DefaultContentModel(int kind)
Construct an ANY or EMPTY content model. |
|
DefaultContentModel(int kind,
RegExp re)
Construct a CHILDREN or MIXED content model |
Method Summary | |
FiniteStateAutomaton |
getFSA()
Return a finite state automaton for the content model |
int |
getKind()
Returns one of EMPTY, ANY, CHILDREN, or MIXED. |
RegExp |
getRegExp()
Return a regular expression for the content model. |
boolean |
match(java.util.List content)
Determine whether a sequence of content elements is matched by the automaton. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultContentModel(int kind)
public DefaultContentModel(int kind, RegExp re)
Method Detail |
public int getKind()
public RegExp getRegExp()
Precondition: kind must be CHILREN or MIXED.
public FiniteStateAutomaton getFSA()
Precondition: kind must be CHILREN or MIXED.
The alphabet of the automaton is the element names (Strings) and the String "#PCDATA"
Note that if the content model is (#PCDATA) then it is first converted to (#PCDATA)*, so the automaton will match any number of "#PCDATA".
public boolean match(java.util.List content)
content.
- A List of Strings. The Strings can be element names or "#PCDATA".
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |