Interface Attribute

    • Method Detail

      • isVisible

        <N,​E> boolean isVisible​(@Nonnull
                                      GraphExporter.ExporterContext context)
        Returns whether this method is visible in the given context.
        Type Parameters:
        N - node type
        E - edge type
        Parameters:
        context - the exporter context of the exporter being used
        Returns:
        true if the attribute is semantic, false otherwise.
      • getReference

        @Nonnull
        Object getReference()
        Return the underlying object this attribute refers to.
        Returns:
        the object.
      • gml

        @Nonnull
        static Attribute.GmlAttribute gml​(@Nonnull
                                          Object reference)
        Static factory method to create a GML attribute based on a reference to some object.
        Parameters:
        reference - the reference
        Returns:
        a new attribute that is only visible to the GML exporter
      • dot

        @Nonnull
        static Attribute.DotAttribute dot​(@Nonnull
                                          Object reference)
        Static factory method to create a DOT attribute based on a reference to some object.
        Parameters:
        reference - the reference
        Returns:
        a new attribute that is only visible to the DOT exporter
      • common

        @Nonnull
        static Attribute.CommonAttribute common​(@Nonnull
                                                Object reference)
        Static factory method to create an attribute based on a reference to some object.
        Parameters:
        reference - the reference
        Returns:
        a new attribute that is visible to all exporters
      • invisible

        @Nonnull
        static Attribute.InvisibleAttribute invisible​(@Nonnull
                                                      Object reference)
        Static factory method to create an attribute based on a reference to some object.
        Parameters:
        reference - the reference
        Returns:
        a new attribute that is invisible to all exporters. Attributes of this kind can only be used in variable substitutions.