Enum XLink.Type

    • Enum Constant Detail

      • EXTENDED

        public static final XLink.Type EXTENDED
        An extended, possibly multi-resource, link. Allows the role and title attributes, all of them being optional.
      • LOCATOR

        public static final XLink.Type LOCATOR
        A pointer to an external resource. Allows the href, role, title and label attributes, where href is mandatory and all other are optional.
      • RESOURCE

        public static final XLink.Type RESOURCE
        An internal resource. Allows the role, title and label attributes, all of them being optional.
      • TITLE

        public static final XLink.Type TITLE
        A descriptive title for another linking element.
      • AUTO

        public static final XLink.Type AUTO
        A special value for computing the type automatically from the XLink attributes. After a call to XLink​.set­Type(AUTO), any call to XLink​.get­Type() will infer the type from the non-null attributes as according the table documented in the XLink javadoc.
    • Method Detail

      • values

        public static XLink.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (XLink.Type c : XLink.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static XLink.Type valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        Illegal­Argument­Exception - if this enum type has no constant with the specified name
        Null­Pointer­Exception - if the argument is null