Class Features

java.lang.Object
com.apicatalog.tree.io.Features

public class Features extends Object
  • Constructor Details

  • Method Details

    • contains

      public boolean contains(Features features)
    • nodes

      public Set<NodeType> nodes()
      Returns the complete set of node types that this adapter is capable of representing.
      Returns:
      an immutable set of supported NodeTypes.
    • keys

      public Set<NodeType> keys()
      Returns the set of scalar types that are supported as keys in map nodes. For example, a JSON-based adapter would return only NodeType.STRING, whereas a CBOR-based adapter might return multiple scalar types.
      Returns:
      an immutable set of supported key NodeTypes.