Exemple #1
0
        public Boolean equals(Object o)
        {
            if (!(o is TableLocaleSource))
            {
                return(false);
            }
            TableLocaleSource l = (TableLocaleSource)o;

            return(ExtUtil.Equals(localeData, l.localeData));
        }
Exemple #2
0
 public Boolean equals(Object o)
 {
     if (o is XPathQName)
     {
         XPathQName x = (XPathQName)o;
         return(ExtUtil.Equals(namespace_, x.namespace_) && name.Equals(x.name));
     }
     else
     {
         return(false);
     }
 }
Exemple #3
0
        public Boolean equals(Object o)
        {
            if (o is Localizer)
            {
                Localizer l = (Localizer)o;

                //TODO: Compare all resources
                return(ExtUtil.Equals(locales, locales) &&
                       ExtUtil.Equals(localeResources, l.localeResources) &&
                       ExtUtil.Equals(defaultLocale, l.defaultLocale) &&
                       ExtUtil.Equals(currentLocale, l.currentLocale) &&
                       fallbackDefaultLocale == l.fallbackDefaultLocale &&
                       fallbackDefaultForm == l.fallbackDefaultForm);
            }
            else
            {
                return(false);
            }
        }
Exemple #4
0
        public Boolean Equals(Object o)
        {
            if (o is XPathStep)
            {
                XPathStep x = (XPathStep)o;

                //shortcuts for faster evaluation
                if (axis != x.axis && test != x.test || predicates.Length != x.predicates.Length)
                {
                    return(false);
                }

                switch (test)
                {
                case TEST_NAME: if (!name.equals(x.name))
                    {
                        return(false);
                    }
                    break;

                case TEST_NAMESPACE_WILDCARD: if (!namespace_.Equals(x.namespace_))
                    {
                        return(false);
                    }
                    break;

                case TEST_TYPE_PROCESSING_INSTRUCTION: if (!ExtUtil.Equals(literal, x.literal))
                    {
                        return(false);
                    }
                    break;

                default: break;
                }

                return(ExtUtil.arrayEquals(predicates, x.predicates));
            }
            else
            {
                return(false);
            }
        }