org.kohsuke.rngom.digested
Class DDataPattern

java.lang.Object
  extended by org.kohsuke.rngom.digested.DPattern
      extended by org.kohsuke.rngom.digested.DDataPattern
All Implemented Interfaces:
ParsedPattern

public class DDataPattern
extends DPattern

Author:
Kohsuke Kawaguchi (kk@kohsuke.org)

Nested Class Summary
 class DDataPattern.Param
          Parameter to a data pattern.
 
Constructor Summary
DDataPattern()
           
 
Method Summary
 Object accept(DPatternVisitor visitor)
           
 String getDatatypeLibrary()
          Gets the datatype library URI.
 DPattern getExcept()
          Gets the pattern that reprsents the <except> child of this data pattern.
 List<DDataPattern.Param> getParams()
          Gets the parameters of this <data pattern.
 String getType()
          Gets the datatype name, such as "int" or "token".
 boolean isNullable()
          Returns true if this pattern is nullable.
 
Methods inherited from class org.kohsuke.rngom.digested.DPattern
createParseable, getAnnotation, getLocation, isAttribute, isElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DDataPattern

public DDataPattern()
Method Detail

getDatatypeLibrary

public String getDatatypeLibrary()
Gets the datatype library URI.

Returns:
Can be empty (which represents the built-in datatypes), but never null.

getType

public String getType()
Gets the datatype name, such as "int" or "token".

Returns:
never null.

getParams

public List<DDataPattern.Param> getParams()
Gets the parameters of this <data pattern.

Returns:
can be empty but never null.

getExcept

public DPattern getExcept()
Gets the pattern that reprsents the <except> child of this data pattern.

Returns:
null if not exist.

isNullable

public boolean isNullable()
Description copied from class: DPattern
Returns true if this pattern is nullable. A nullable pattern is a pattern that can match the empty sequence.

Specified by:
isNullable in class DPattern

accept

public Object accept(DPatternVisitor visitor)
Specified by:
accept in class DPattern


Copyright © 2011. All Rights Reserved.