dk.brics.relaxng
Class ValuePattern

java.lang.Object
  extended by dk.brics.relaxng.Pattern
      extended by dk.brics.relaxng.NoContentPattern
          extended by dk.brics.relaxng.ValuePattern

public class ValuePattern
extends NoContentPattern

<value datatypeLibrary="anyURI" type="NCName" ns="string"> string </value>


Field Summary
 
Fields inherited from class dk.brics.relaxng.Pattern
origin
 
Constructor Summary
ValuePattern(String lib, String type, String ns, String value, Origin origin)
          Construcs a new value pattern.
 
Method Summary
 String getLibrary()
          Returns datatype library.
 String getNs()
          Returns namespace.
 String getType()
          Returns type.
 String getValue()
          Returns value.
<T> T
process(PatternProcessor<T> v)
          Applies the given pattern processor on this pattern.
 
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

ValuePattern

public ValuePattern(String lib,
                    String type,
                    String ns,
                    String value,
                    Origin origin)
Construcs a new value pattern.

Parameters:
lib - datatypeLibrary
type - type
ns - namespace
value - value
origin - source information (null if not applicable)
Method Detail

getLibrary

public String getLibrary()
Returns datatype library.

Returns:
datatype library

getNs

public String getNs()
Returns namespace.

Returns:
namespace

getType

public String getType()
Returns type.

Returns:
type

getValue

public String getValue()
Returns value.

Returns:
value

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.