public class ObjectResolvedType extends XmlFacetsCapableType
customFacets| Constructor and Description |
|---|
ObjectResolvedType(String typeName,
TypeExpressionNode declarationNode,
XmlFacets xmlFacets,
Integer minProperties,
Integer maxProperties,
Boolean additionalProperties,
String discriminator,
String discriminatorValue,
Map<String,PropertyFacets> properties,
ResolvedCustomFacets customFacets) |
ObjectResolvedType(TypeExpressionNode from) |
| Modifier and Type | Method and Description |
|---|---|
protected ObjectResolvedType |
copy() |
boolean |
doAccept(ResolvedType valueType) |
Boolean |
getAdditionalProperties() |
String |
getBuiltinTypeName()
Returns the builtin type name.
|
String |
getDiscriminator() |
String |
getDiscriminatorValue() |
Integer |
getMaxProperties() |
Integer |
getMinProperties() |
Map<String,PropertyFacets> |
getProperties() |
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 |
setAdditionalProperties(Boolean additionalProperties) |
void |
setDiscriminator(String discriminator) |
void |
setDiscriminatorValue(String discriminatorValue) |
void |
setMaxProperties(Integer maxProperties) |
void |
setMinProperties(Integer minProperties) |
void |
setProperties(Map<String,PropertyFacets> properties) |
void |
validateCanOverwriteWith(TypeDeclarationNode from)
Validate if this type can be overwritten by the specified node
|
ErrorNode |
validateFacets() |
void |
validateState()
Validate state consistency
|
<T> T |
visit(TypeVisitor<T> visitor)
Dispatch the implementation to the visitor method
|
getXmlFacets, mergeFacets, overwriteFacetsaccepts, customFacets, getTypeExpressionNode, getTypeName, getTypeName, overwriteFacets, setTypeNodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccepts, customFacets, getTypeExpressionNode, getTypeName, setTypeNodepublic ObjectResolvedType(String typeName, TypeExpressionNode declarationNode, XmlFacets xmlFacets, Integer minProperties, Integer maxProperties, Boolean additionalProperties, String discriminator, String discriminatorValue, Map<String,PropertyFacets> properties, ResolvedCustomFacets customFacets)
public ObjectResolvedType(TypeExpressionNode from)
protected ObjectResolvedType copy()
public boolean doAccept(ResolvedType valueType)
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 ErrorNode validateFacets()
public <T> T visit(TypeVisitor<T> visitor)
ResolvedTypeT - The result typevisitor - The visitorpublic Integer getMinProperties()
public void setMinProperties(Integer minProperties)
public Integer getMaxProperties()
public void setMaxProperties(Integer maxProperties)
public Boolean getAdditionalProperties()
public void setAdditionalProperties(Boolean additionalProperties)
public String getDiscriminator()
public void setDiscriminator(String discriminator)
public String getDiscriminatorValue()
public void setDiscriminatorValue(String discriminatorValue)
public Map<String,PropertyFacets> getProperties()
public void setProperties(Map<String,PropertyFacets> properties)
@Nullable public String getBuiltinTypeName()
ResolvedTypegetBuiltinTypeName in interface ResolvedTypegetBuiltinTypeName in class BaseTypeCopyright © 2017. All rights reserved.