dk.brics.relaxng
Class MultiContentPattern

java.lang.Object
  extended by dk.brics.relaxng.Pattern
      extended by dk.brics.relaxng.MultiContentPattern
Direct Known Subclasses:
ChoicePattern, GroupPattern, InterleavePattern

public abstract class MultiContentPattern
extends Pattern

Abstract superclass for patterns with multiple contents.


Field Summary
protected  List<Pattern> ps
          Content patterns.
 
Fields inherited from class dk.brics.relaxng.Pattern
origin
 
Constructor Summary
MultiContentPattern(List<Pattern> ps, Origin origin)
          Constructs a new pattern with multiple contents.
 
Method Summary
 List<Pattern> getContents()
          Returns the content patterns.
 void setContents(List<Pattern> ps)
          Sets the content patterns.
 
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

ps

protected List<Pattern> ps
Content patterns.

Constructor Detail

MultiContentPattern

public MultiContentPattern(List<Pattern> ps,
                           Origin origin)
Constructs a new pattern with multiple contents.

Parameters:
ps - list of pattern
origin - source information (null if not applicable)
Method Detail

getContents

public List<Pattern> getContents()
Returns the content patterns.

Returns:
list of patterns (should not be modified)

setContents

public void setContents(List<Pattern> ps)
Sets the content patterns.

Parameters:
ps - list of patterns


Copyright © 2005-2010 Anders Møller.