abstract class RamlWebApiContext extends WebApiContext with RamlSpecAwareContext
- Alphabetic
- By Inheritance
- RamlWebApiContext
- RamlSpecAwareContext
- WebApiContext
- PlatformSecrets
- SpecAwareContext
- ParserContext
- Serializable
- Serializable
- Product
- Equals
- ErrorHandler
- ParseErrorHandler
- IllegalTypeHandler
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RamlWebApiContext(loc: String, refs: Seq[ParsedReference], options: ParsingOptions, wrapped: ParserContext, ds: Option[RamlWebApiDeclarations] = None, parserCount: Option[Int] = None, eh: Option[ErrorHandler] = None, contextType: RamlWebApiContextType = RamlWebApiContextType.DEFAULT)
Abstract Value Members
-
abstract
def
clone(declarations: RamlWebApiDeclarations): RamlWebApiContext
- Attributes
- protected
-
abstract
val
factory: RamlSpecVersionFactory
- Definition Classes
- RamlWebApiContext → SpecAwareContext
-
abstract
val
syntax: SpecSyntax
- Definition Classes
- WebApiContext
-
abstract
val
vendor: Vendor
- Definition Classes
- WebApiContext
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
adapt[T](path: String)(k: (RamlWebApiContext) ⇒ T): T
Adapt this context for a nested library, used when evaluating resource type / traits Using a path to the library whose context is going to be looked up, e.g.
Adapt this context for a nested library, used when evaluating resource type / traits Using a path to the library whose context is going to be looked up, e.g. lib.TypeA
-
def
addSonRef(ref: BaseUnit): RamlWebApiContext.this.type
- Definition Classes
- ParserContext
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
basePath(path: String): String
- Definition Classes
- WebApiContext
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
closedRamlTypeShape(shape: Shape, ast: YMap, shapeType: String, typeInfo: TypeInfo): Unit
raml types nodes are different from other shapes because they can have 'custom facets' essentially, client defined constraints expressed as additional properties syntactically in the type definition.
raml types nodes are different from other shapes because they can have 'custom facets' essentially, client defined constraints expressed as additional properties syntactically in the type definition. The problem is that they cannot be recognised just looking into the AST as we do with annotations, so we need to first, compute them, and then, add them as additional valid properties to the set of properties that can be defined in the AST node
-
def
closedShape(node: String, ast: YMap, shape: String): Unit
Validate closed shape.
Validate closed shape.
- Definition Classes
- WebApiContext
-
def
computeJsonSchemaVersion(rootAst: YNode): JSONSchemaVersion
- Definition Classes
- WebApiContext
- var contextType: RamlWebApiContextType
-
def
copyWithSonsReferences(): ParserContext
- Definition Classes
- ParserContext
-
val
declarations: RamlWebApiDeclarations
- Definition Classes
- RamlWebApiContext → WebApiContext
-
val
eh: Option[ErrorHandler]
- Definition Classes
- RamlWebApiContext → WebApiContext → ParserContext
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
findDeclarations(path: Seq[String], declarations: RamlWebApiDeclarations): RamlWebApiDeclarations
- Attributes
- protected
-
def
findJsonSchema(url: String): Option[AnyShape]
- Definition Classes
- WebApiContext
-
def
findLocalJSONPath(path: String): Option[(String, YNode)]
- Definition Classes
- WebApiContext
-
def
forLocation(newLocation: String): ParserContext
- Definition Classes
- ParserContext
-
val
futureDeclarations: FutureDeclarations
- Definition Classes
- ParserContext
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- var globalMediatype: Boolean
-
var
globalSpace: Map[String, Any]
- Definition Classes
- ParserContext
-
def
guiKey(message: String, location: Option[String], lexical: Option[LexicalInformation]): String
- Definition Classes
- ErrorHandler
-
def
handle(location: SourceLocation, e: SyamlException): Unit
- Definition Classes
- ErrorHandler → ParseErrorHandler
-
final
def
handle(node: YPart, e: SyamlException): Unit
- Definition Classes
- ErrorHandler
-
def
handle[T](error: YError, defaultValue: T): T
- Definition Classes
- ErrorHandler → IllegalTypeHandler
-
def
ignore(shape: String, property: String): Boolean
- Definition Classes
- RamlWebApiContext → WebApiContext
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
link(node: YNode): Either[String, YNode]
- Definition Classes
- RamlWebApiContext → WebApiContext
-
val
loc: String
- Definition Classes
- RamlWebApiContext → WebApiContext
-
var
localJSONSchemaContext: Option[YNode]
- Definition Classes
- WebApiContext
- def mergeAllOperationContexts(): Unit
- def mergeContext(subContext: RamlWebApiContext): Unit
- def mergeOperationContext(operation: String): Unit
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
normalizedJsonPointer(url: String): String
- Attributes
- protected
- Definition Classes
- WebApiContext
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
obtainRemoteYNode(ref: String)(implicit ctx: WebApiContext): Option[YNode]
- Definition Classes
- WebApiContext
- val operationContexts: Map[String, RamlWebApiContext]
-
val
options: ParsingOptions
- Definition Classes
- WebApiContext
-
def
parseRemoteJSONPath(fileUrl: String)(implicit ctx: OasWebApiContext): Option[AnyShape]
- Definition Classes
- WebApiContext
-
def
parseRemoteOasParameter(fileUrl: String, parentId: String)(implicit ctx: OasWebApiContext): Option[OasParameter]
- Definition Classes
- WebApiContext
-
val
parserCount: Int
- Definition Classes
- ParserContext
-
def
part(error: YError): YPart
- Attributes
- protected
- Definition Classes
- ErrorHandler
-
val
platform: Platform
- Definition Classes
- PlatformSecrets
-
val
refs: Seq[ParsedReference]
- Definition Classes
- ParserContext
-
def
registerJsonSchema(url: String, shape: AnyShape): Unit
- Definition Classes
- WebApiContext
-
def
reportConstraint(id: String, node: String, property: Option[String], message: String, lexical: Option[LexicalInformation], level: String, location: Option[String]): Unit
- Definition Classes
- ParserContext → ErrorHandler
-
var
reportDisambiguation: Set[String]
- Definition Classes
- ParserContext
-
def
resolvedPath(base: String, str: String): String
- Definition Classes
- WebApiContext
-
val
rootContextDocument: String
- Definition Classes
- ParserContext
-
def
setJsonSchemaAST(value: YNode): Unit
- Definition Classes
- WebApiContext
-
def
supportsAnnotations: Boolean
- Attributes
- protected
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
violation(specification: ValidationSpecification, node: String, message: String): Unit
- Definition Classes
- ErrorHandler
-
def
violation(specification: ValidationSpecification, node: String, message: String, loc: SourceLocation): Unit
- Definition Classes
- ErrorHandler
-
def
violation(specification: ValidationSpecification, node: String, message: String, ast: YPart): Unit
- Definition Classes
- ErrorHandler
-
def
violation(spec: ValidationSpecification, n: String, prop: Option[String], msg: String, l: SourceLocation): Unit
- Definition Classes
- ErrorHandler
-
def
violation(spec: ValidationSpecification, node: String, prop: Option[String], msg: String, ast: YPart): Unit
- Definition Classes
- ErrorHandler
-
def
violation(specification: ValidationSpecification, node: String, message: String, location: String): Unit
- Definition Classes
- ErrorHandler
-
def
violation(specification: ValidationSpecification, element: AmfObject, target: Option[String], message: String): Unit
- Definition Classes
- ErrorHandler
-
def
violation(specification: ValidationSpecification, node: String, message: String, annotations: Annotations): Unit
- Definition Classes
- ErrorHandler
-
def
violation(specification: ValidationSpecification, node: String, property: Option[String], message: String, lexical: Option[LexicalInformation], location: Option[String]): Unit
- Definition Classes
- ErrorHandler
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
warning(specification: ValidationSpecification, node: String, message: String, annotations: Annotations): Unit
- Definition Classes
- ErrorHandler
-
def
warning(specification: ValidationSpecification, node: String, message: String, location: SourceLocation): Unit
- Definition Classes
- ErrorHandler
-
def
warning(specification: ValidationSpecification, node: String, message: String, ast: YPart): Unit
- Definition Classes
- ErrorHandler
-
def
warning(specification: ValidationSpecification, node: String, property: Option[String], message: String, part: YPart): Unit
- Definition Classes
- ErrorHandler
-
def
warning(specification: ValidationSpecification, node: String, property: Option[String], message: String, location: SourceLocation): Unit
- Definition Classes
- ErrorHandler
-
def
warning(spec: ValidationSpecification, element: AmfObject, target: Option[String], message: String): Unit
- Definition Classes
- ErrorHandler
-
def
warning(specification: ValidationSpecification, node: String, property: Option[String], message: String, lexical: Option[LexicalInformation], location: Option[String]): Unit
- Definition Classes
- ErrorHandler
- val wrapped: ParserContext