public class FileResolvedType extends XmlFacetsCapableType
customFacets| Constructor and Description |
|---|
FileResolvedType(String typeName,
TypeExpressionNode declarationNode,
XmlFacets xmlFacets,
Integer minLength,
Integer maxLength,
List<String> fileTypes,
ResolvedCustomFacets customFacets) |
FileResolvedType(TypeExpressionNode from) |
| Modifier and Type | Method and Description |
|---|---|
protected FileResolvedType |
copy() |
String |
getBuiltinTypeName()
Returns the builtin type name.
|
List<String> |
getFileTypes() |
Integer |
getMaxLength() |
Integer |
getMinLength() |
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 |
setFileTypes(List<String> fileTypes) |
void |
setMaxLength(Integer maxLength) |
void |
setMinLength(Integer minLength) |
void |
validateCanOverwriteWith(TypeDeclarationNode from)
Validate if this type can be overwritten by the specified node
|
<T> T |
visit(TypeVisitor<T> visitor)
Dispatch the implementation to the visitor method
|
getXmlFacets, mergeFacets, overwriteFacetsaccepts, customFacets, doAccept, getTypeExpressionNode, getTypeName, getTypeName, overwriteFacets, setTypeNode, validateStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccepts, customFacets, getTypeExpressionNode, getTypeName, setTypeNode, validateStatepublic FileResolvedType(TypeExpressionNode from)
public FileResolvedType(String typeName, TypeExpressionNode declarationNode, XmlFacets xmlFacets, Integer minLength, Integer maxLength, List<String> fileTypes, ResolvedCustomFacets customFacets)
protected FileResolvedType copy()
public void validateCanOverwriteWith(TypeDeclarationNode from)
ResolvedTypefrom - The node to check withpublic ResolvedType overwriteFacets(TypeDeclarationNode from)
ResolvedTypefrom - The node from where to load the facetspublic ResolvedType mergeFacets(ResolvedType with)
ResolvedTypewith - The type definition to merge withpublic <T> T visit(TypeVisitor<T> visitor)
ResolvedTypeT - The result typevisitor - The visitorpublic Integer getMinLength()
public void setMinLength(Integer minLength)
public Integer getMaxLength()
public void setMaxLength(Integer maxLength)
@Nullable public String getBuiltinTypeName()
ResolvedTypegetBuiltinTypeName in interface ResolvedTypegetBuiltinTypeName in class BaseTypeCopyright © 2017. All rights reserved.