Class ExtendableItemHelper


  • public final class ExtendableItemHelper
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static java.lang.String decodeAttribute​(java.lang.String blob, java.lang.String prefix)
      Decode qualified attribute name from blob.
      static java.lang.String encodeAttribute​(java.lang.String attribute, java.lang.String prefix)
      Encode qualified attribute name into blob to be used in XML report.
      static void fillExtraAttributes​(ParserSettings settings, DefaultExtendableItem item, org.xml.sax.Attributes attributes, java.lang.String[] ignoredAttNames)
      Deprecated.
      static void fillExtraAttributes​(ParserSettings settings, DefaultExtendableItem item, org.xml.sax.Attributes attributes, java.util.List<java.lang.String> ignoredAttNames)  
      static java.util.Map<java.lang.String,​java.lang.String> getExtraAttributes​(ParserSettings settings, org.xml.sax.Attributes attributes, java.lang.String[] ignoredAttNames)
      Deprecated.
      static java.util.Map<java.lang.String,​java.lang.String> getExtraAttributes​(ParserSettings settings, org.xml.sax.Attributes attributes, java.util.List<java.lang.String> ignoredAttNames)
      Extract from the XML attribute the extra Ivy ones
      static java.util.Map<java.lang.String,​java.lang.String> getExtraAttributes​(org.xml.sax.Attributes attributes, java.lang.String prefix)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • decodeAttribute

        public static java.lang.String decodeAttribute​(java.lang.String blob,
                                                       java.lang.String prefix)
        Decode qualified attribute name from blob.
        Parameters:
        blob - Encoded attribute name
        prefix - Prefix used during encoding
        Returns:
        String
        See Also:
        encodeAttribute(String, String)
      • encodeAttribute

        public static java.lang.String encodeAttribute​(java.lang.String attribute,
                                                       java.lang.String prefix)
        Encode qualified attribute name into blob to be used in XML report.
        Parameters:
        attribute - Qualified (or unqualified) attribute name
        prefix - Prefix
        Returns:
        String
        See Also:
        decodeAttribute(String, String)
      • getExtraAttributes

        public static java.util.Map<java.lang.String,​java.lang.String> getExtraAttributes​(org.xml.sax.Attributes attributes,
                                                                                                java.lang.String prefix)
      • getExtraAttributes

        @Deprecated
        public static java.util.Map<java.lang.String,​java.lang.String> getExtraAttributes​(ParserSettings settings,
                                                                                                org.xml.sax.Attributes attributes,
                                                                                                java.lang.String[] ignoredAttNames)
        Deprecated.
      • getExtraAttributes

        public static java.util.Map<java.lang.String,​java.lang.String> getExtraAttributes​(ParserSettings settings,
                                                                                                org.xml.sax.Attributes attributes,
                                                                                                java.util.List<java.lang.String> ignoredAttNames)
        Extract from the XML attribute the extra Ivy ones
        Parameters:
        settings - ParserSettings
        attributes - Attributes
        ignoredAttNames - the XML attributes names which are not extra but Ivy core ones
        Returns:
        Map<String,String>
      • fillExtraAttributes

        @Deprecated
        public static void fillExtraAttributes​(ParserSettings settings,
                                               DefaultExtendableItem item,
                                               org.xml.sax.Attributes attributes,
                                               java.lang.String[] ignoredAttNames)
        Deprecated.
      • fillExtraAttributes

        public static void fillExtraAttributes​(ParserSettings settings,
                                               DefaultExtendableItem item,
                                               org.xml.sax.Attributes attributes,
                                               java.util.List<java.lang.String> ignoredAttNames)