public class StringResolvedType extends XmlFacetsCapableType
customFacets| Constructor and Description |
|---|
StringResolvedType(TypeExpressionNode from) |
StringResolvedType(TypeExpressionNode declarationNode,
XmlFacets xmlFacets,
Integer minLength,
Integer maxLength,
String pattern,
List<String> enums,
ResolvedCustomFacets customFacets) |
| Modifier and Type | Method and Description |
|---|---|
protected StringResolvedType |
copy() |
String |
getBuiltinTypeName()
Returns the builtin type name.
|
List<String> |
getEnums() |
Integer |
getMaxLength() |
Integer |
getMinLength() |
String |
getPattern() |
ResolvedType |
mergeFacets(ResolvedType with)
Returns a new type definition after merging the facets of both Types
|
ResolvedType |
overwriteFacets(TypeDeclarationNode from)
Returns a new type definition with the facets being overwritten from the specified node
|
void |
setEnums(List<String> enums) |
void |
validateCanOverwriteWith(TypeDeclarationNode from)
Validate if this type can be overwritten by the specified node
|
void |
validateState()
Validate state consistency
|
<T> T |
visit(TypeVisitor<T> visitor)
Dispatch the implementation to the visitor method
|
getXmlFacets, mergeFacets, overwriteFacetsaccepts, customFacets, doAccept, getTypeDeclarationNode, getTypeName, setTypeNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccepts, customFacets, getTypeDeclarationNode, getTypeName, setTypeNodepublic StringResolvedType(TypeExpressionNode from)
public StringResolvedType(TypeExpressionNode declarationNode, XmlFacets xmlFacets, Integer minLength, Integer maxLength, String pattern, List<String> enums, ResolvedCustomFacets customFacets)
protected StringResolvedType copy()
public ResolvedType overwriteFacets(TypeDeclarationNode from)
ResolvedTypefrom - The node from where to load the facetspublic ResolvedType mergeFacets(ResolvedType with)
ResolvedTypewith - The type definition to merge withpublic void validateCanOverwriteWith(TypeDeclarationNode from)
ResolvedTypefrom - The node to check withpublic void validateState()
ResolvedTypevalidateState in interface ResolvedTypevalidateState in class BaseTypepublic <T> T visit(TypeVisitor<T> visitor)
ResolvedTypeT - The result typevisitor - The visitor@Nullable public String getBuiltinTypeName()
ResolvedTypegetBuiltinTypeName in interface ResolvedTypegetBuiltinTypeName in class BaseTypeCopyright © 2017. All rights reserved.