Package com.sun.tools.rngom.digested
Class DDataPattern
- java.lang.Object
-
- com.sun.tools.rngom.digested.DPattern
-
- com.sun.tools.rngom.digested.DDataPattern
-
- All Implemented Interfaces:
ParsedPattern
public class DDataPattern extends DPattern
- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classDDataPattern.ParamParameter to a data pattern.
-
Constructor Summary
Constructors Constructor Description DDataPattern()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(DPatternVisitor visitor)StringgetDatatypeLibrary()Gets the datatype library URI.DPatterngetExcept()Gets the pattern that reprsents the<except>child of this data pattern.List<DDataPattern.Param>getParams()Gets the parameters of this <data pattern.StringgetType()Gets the datatype name, such as "int" or "token".booleanisNullable()Returns true if this pattern is nullable.-
Methods inherited from class com.sun.tools.rngom.digested.DPattern
createParseable, getAnnotation, getLocation, isAttribute, isElement
-
-
-
-
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:DPatternReturns true if this pattern is nullable. A nullable pattern is a pattern that can match the empty sequence.- Specified by:
isNullablein classDPattern
-
accept
public Object accept(DPatternVisitor visitor)
-
-