Package ghidra.trace.model.target.schema

# Interface SchemaContext

All Known Implementing Classes:
  `DefaultSchemaContext`, `PrimitiveTraceObjectSchema.MinimalSchemaContext`, `XmlSchemaContext`

public interface SchemaContext
A collection of related schemas all for the same trace or target

- ## Method Summary

  Modifier and Type
  Method
  Description
  `SequencedSet<TraceObjectSchema>`
  `getAllSchemas()`
  Collect all schemas in this context
  `TraceObjectSchema`
  `getSchema(TraceObjectSchema.SchemaName name)`
  Resolve a schema in this context by name
  `TraceObjectSchema`
  `getSchemaOrNull(TraceObjectSchema.SchemaName name)`
  Resolve a schema in this context by name

- ## Method Details

  - ### getSchema

    TraceObjectSchema getSchema(TraceObjectSchema.SchemaName name)
    Resolve a schema in this context by name

    Note that resolving a name generated outside of this context may have undefined results.

    Parameters:
      `name` - the schema's name
    Returns:
      the schema or `PrimitiveTraceObjectSchema.ANY` if no schema by the given name exists

  - ### getSchemaOrNull

    TraceObjectSchema getSchemaOrNull(TraceObjectSchema.SchemaName name)
    Resolve a schema in this context by name
    Parameters:
      `name` - the schema's name
    Returns:
      the schema, or null if no schema by the given name exists

  - ### getAllSchemas

    SequencedSet<TraceObjectSchema> getAllSchemas()
    Collect all schemas in this context
    Returns:
      the set of all schemas