Class TraitDefinition

    • Method Detail

      • getSelector

        public Selector getSelector()
        Gets the valid places in a model that this trait can be applied.
        Returns:
        Returns the trait selector.
      • getConflicts

        public java.util.List<ShapeId> getConflicts()
        Gets the trait names that conflict with this trait.
        Returns:
        Returns the conflicting trait names.
      • isStructurallyExclusive

        public boolean isStructurallyExclusive()
        Returns:
        Returns true if the trait is structurally exclusive.
      • createNode

        protected 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.