Class StringListTrait

    • Constructor Detail

      • StringListTrait

        public StringListTrait​(ShapeId id,
                               java.util.List<java.lang.String> values,
                               FromSourceLocation sourceLocation)
        Parameters:
        id - The id of the trait being created.
        values - The string values of the trait.
        sourceLocation - Where the trait was defined.
    • Method Detail

      • createNode

        protected final Node createNode()
        Description copied from class: AbstractTrait
        The result of toNode is used for hashCodes and equality. Subclasses must implement createNode to turn the trait into a Node. This is then cached for subsequent retrievals.
        Specified by:
        createNode in class AbstractTrait
        Returns:
        Returns the trait as a node.
      • getValues

        public final java.util.List<java.lang.String> getValues()
        Returns:
        Gets the trait values.