dk.brics.relaxng
Class DataPattern

java.lang.Object
  extended by dk.brics.relaxng.Pattern
      extended by dk.brics.relaxng.SingleContentPattern
          extended by dk.brics.relaxng.DataPattern

public class DataPattern
extends SingleContentPattern

<data type="NCName" datatypeLibrary="anyURI"> param* [exceptPattern] </data>


Field Summary
 
Fields inherited from class dk.brics.relaxng.SingleContentPattern
p
 
Fields inherited from class dk.brics.relaxng.Pattern
origin
 
Constructor Summary
DataPattern(String type, String lib, List<Param> params, Pattern p, Origin origin)
          Constructs a new data pattern.
 
Method Summary
 String getLibrary()
          Returns the datatype library.
 List<Param> getParams()
          Returns the parameters.
 String getType()
          Returns the type.
<T> T
process(PatternProcessor<T> v)
          Applies the given pattern processor on this pattern.
 
Methods inherited from class dk.brics.relaxng.SingleContentPattern
getContent, hasContent, setContent
 
Methods inherited from class dk.brics.relaxng.Pattern
getOrigin, setOrigin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataPattern

public DataPattern(String type,
                   String lib,
                   List<Param> params,
                   Pattern p,
                   Origin origin)
Constructs a new data pattern.

Parameters:
type - type
lib - datatypeLibrary
params - list of parameters
p - except pattern, null if none
origin - source information (null if not applicable)
Method Detail

getLibrary

public String getLibrary()
Returns the datatype library.

Returns:
datatype library

getParams

public List<Param> getParams()
Returns the parameters.

Returns:
list of parameters

getType

public String getType()
Returns the type.

Returns:
type

process

public <T> T process(PatternProcessor<T> v)
Description copied from class: Pattern
Applies the given pattern processor on this pattern.

Specified by:
process in class Pattern
Type Parameters:
T - return type
Parameters:
v - pattern processor
Returns:
result from processor


Copyright © 2005-2010 Anders Møller.