public abstract class OasSchema extends Schema implements IExternalDocumentationParent
_extensions
_attributes, _extraProperties, _modelId, _ownerDocument, _parent, _validationProblems
Constructor and Description |
---|
OasSchema() |
Modifier and Type | Method and Description |
---|---|
void |
addAllOfSchema(OasSchema schema)
Adds an AllOf schema.
|
OasSchema |
addProperty(String propertyName,
OasSchema schema)
Add a property.
|
abstract OasSchema |
createAdditionalPropertiesSchema()
Creates a child schema model.
|
abstract OasSchema |
createAllOfSchema()
Creates a child schema model.
|
abstract ExternalDocumentation |
createExternalDocumentation()
Creates a child external documentation model.
|
abstract OasSchema |
createItemsSchema()
Creates a child schema model.
|
abstract OasSchema |
createPropertySchema(String propertyName)
Creates a child schema model.
|
abstract OasXML |
createXML()
Creates a child XML model.
|
List<OasSchema> |
getProperties()
Gets a list of all the properties.
|
OasSchema |
getProperty(String propertyName)
Gets a single property.
|
List<String> |
getPropertyNames()
Gets a list of all property names.
|
boolean |
hasAdditionalPropertiesBoolean()
Returns true if there is an "additionalProperties" property that is a boolean value and not a schema.
|
boolean |
hasAdditionalPropertiesSchema()
Returns true if there is an additional properties schema.
|
boolean |
hasItemsSchema()
Returns true if there is a single items schema.
|
boolean |
hasItemsSchemas()
Returns true if there is a list of items schemas.
|
void |
removeAllOfSchema(OasSchema schema)
Removes a allOf schema.
|
OasSchema |
removeProperty(String propertyName)
Removes a property by name.
|
void |
setExternalDocumentation(ExternalDocumentation externalDocs)
Sets the external documentation.
|
accept, getReference, setReference
addExtension, clearExtensions, createExtension, getExtension, getExtensions, isExtensible, removeExtension
addExtraProperty, addValidationProblem, attachToParent, clearAttributes, clearValidationProblems, getAttribute, getAttributeNames, getExtraProperty, getExtraPropertyNames, getValidationProblemCodes, getValidationProblems, getValidationProblemsFor, hasExtraProperties, isAttached, modelId, ownerDocument, parent, removeExtraProperty, setAttribute
public String format
public String title
public String description
public Object default_
public Number multipleOf
public Number maximum
public Boolean exclusiveMaximum
public Number minimum
public Boolean exclusiveMinimum
public Number maxLength
public Number minLength
public String pattern
public Number maxItems
public Number minItems
public Boolean uniqueItems
public Number maxProperties
public Number minProperties
public String type
public Object items
public Object additionalProperties
public Boolean readOnly
public OasXML xml
public ExternalDocumentation externalDocs
public Object example
public abstract ExternalDocumentation createExternalDocumentation()
createExternalDocumentation
in interface IExternalDocumentationParent
public void setExternalDocumentation(ExternalDocumentation externalDocs)
IExternalDocumentationParent
public abstract OasXML createXML()
public abstract OasSchema createAllOfSchema()
public abstract OasSchema createItemsSchema()
public abstract OasSchema createAdditionalPropertiesSchema()
public abstract OasSchema createPropertySchema(String propertyName)
public OasSchema addProperty(String propertyName, OasSchema schema)
propertyName
- schema
- public OasSchema removeProperty(String propertyName)
propertyName
- public OasSchema getProperty(String propertyName)
propertyName
- public boolean hasItemsSchema()
public boolean hasItemsSchemas()
public boolean hasAdditionalPropertiesSchema()
public boolean hasAdditionalPropertiesBoolean()
public void addAllOfSchema(OasSchema schema)
schema
- public void removeAllOfSchema(OasSchema schema)
schema
- Copyright © 2020 Red Hat. All rights reserved.