Interface TraitService

    • Method Detail

      • getShapeId

        ShapeId getShapeId()
        Returns:
        Gets the shape ID of the trait that this provider created.
      • createTrait

        Trait createTrait​(ShapeId target,
                          Node value)
        Creates the trait from a node value.
        Parameters:
        target - The shape targeted by the trait.
        value - The value of the trait.
        Returns:
        Returns the created trait.