|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.brics.relaxng.Pattern
dk.brics.relaxng.SingleContentPattern
public abstract class SingleContentPattern
Abstract superclass for patterns with a single (or no) content.
Field Summary | |
---|---|
protected Pattern |
p
Content pattern. |
Fields inherited from class dk.brics.relaxng.Pattern |
---|
origin |
Constructor Summary | |
---|---|
SingleContentPattern(Pattern p,
Origin origin)
Constructs a new pattern with a single content. |
Method Summary | |
---|---|
Pattern |
getContent()
Returns the content pattern. |
boolean |
hasContent()
Checks whether this pattern has a content. |
void |
setContent(Pattern p)
Sets the content. |
Methods inherited from class dk.brics.relaxng.Pattern |
---|
getOrigin, process, setOrigin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Pattern p
Constructor Detail |
---|
public SingleContentPattern(Pattern p, Origin origin)
p
- content pattern, null if noneorigin
- source information (null if not applicable)Method Detail |
---|
public Pattern getContent()
public boolean hasContent()
public void setContent(Pattern p)
p
- content pattern, null if none
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |