dk.brics.relaxng
Class DataPattern
java.lang.Object
dk.brics.relaxng.Pattern
dk.brics.relaxng.SingleContentPattern
dk.brics.relaxng.DataPattern
public class DataPattern
- extends SingleContentPattern
<data type="NCName" datatypeLibrary="anyURI"> param* [exceptPattern] </data>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataPattern
public DataPattern(String type,
String lib,
List<Param> params,
Pattern p,
Origin origin)
- Constructs a new data pattern.
- Parameters:
type
- typelib
- datatypeLibraryparams
- list of parametersp
- except pattern, null if noneorigin
- source information (null if not applicable)
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.