Class DDataPattern
java.lang.Object
org.kohsuke.rngom.rngparser.digested.DPattern
org.kohsuke.rngom.rngparser.digested.DDataPattern
- All Implemented Interfaces:
ParsedPattern
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(DPatternVisitor visitor) Gets the datatype library URI.Gets the pattern that reprsents the <except> child of this data pattern.Gets the parameters of this <data pattern.getType()Gets the datatype name, such as "int" or "token".booleanReturns true if this pattern is nullable.Methods inherited from class org.kohsuke.rngom.rngparser.digested.DPattern
createParseable, getAnnotation, getLocation, getNext, isAttribute, isElement, setNext
-
Constructor Details
-
DDataPattern
public DDataPattern()
-
-
Method Details
-
getDatatypeLibrary
Gets the datatype library URI.- Returns:
- Can be empty (which represents the built-in datatypes), but never null.
-
getType
Gets the datatype name, such as "int" or "token".- Returns:
- never null.
-
getParams
Gets the parameters of this <data pattern.- Returns:
- can be empty but never null.
-
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
-