Class HC_Target

    • Field Detail

      • BLANK

        public static final HC_Target BLANK
        New window
      • SELF

        public static final HC_Target SELF
        This window
      • PARENT

        public static final HC_Target PARENT
        Parent frame
      • TOP

        public static final HC_Target TOP
        Out of frames
    • Constructor Detail

    • Method Detail

      • getAttrValue

        @Nonnull
        @Nonempty
        public final String getAttrValue()
        Specified by:
        getAttrValue in interface com.helger.xml.microdom.IHasAttributeValue
      • getFromName

        @Nullable
        public static HC_Target getFromName​(@Nonnull
                                            String sName,
                                            @Nullable
                                            HC_Target aDefault)
        Try to find one of the default targets by name. The name comparison is performed case insensitive.
        Parameters:
        sName - The name to check. May not be null.
        aDefault - The default value to be returned in case the name was never found. May be null.
        Returns:
        The constant link target representing the name or the default value. May be null if the passed default value is null and the name was not found.
      • getFromName

        @Nullable
        public static HC_Target getFromName​(@Nonnull
                                            String sName,
                                            @Nonnull
                                            Function<String,​? extends HC_Target> aDefaultSupplier)
        Try to find one of the default targets by name. The name comparison is performed case insensitive.
        Parameters:
        sName - The name to check. May not be null.
        aDefaultSupplier - The supplier to be invoked in case the name was never found. May not be null but may return a null value.
        Returns:
        The constant link target representing the name or the default value. May be null if the passed supplier returns null.
        Since:
        8.2.6