Exemplo n.º 1
0
        public override bool Matches(AttribDetails ad)
        {
            object oName = ad.localName;
            object oThisName = this.m_attrName;

            if (!string.IsNullOrEmpty(m_attrName) && oName != oThisName)
            {
                return false;
            }

            if (!string.IsNullOrEmpty(m_attrValue) && string.Compare(ad.value, m_attrValue, true) != 0)
                return false;

            return true;
        }
Exemplo n.º 2
0
 public void CreateNewAttribute(string prefix, string localName, string namespaceURI, string value)
 {
     AttribDetails ad = new AttribDetails(prefix, localName, namespaceURI, value);
     if (ad.localName == "val")
         valueAttribute = ad;
     listOfAttribDetails.Add(ad);
 }
Exemplo n.º 3
0
 private void RememberCurrentAttribute()
 {
     AttribDetails ad = new AttribDetails(m_reader.Prefix, m_reader.LocalName, m_reader.NamespaceURI, m_reader.Value);
     if (ad.localName == "val")
         valueAttribute = ad;
     listOfAttribDetails.Add(ad);
 }
Exemplo n.º 4
0
 public override bool Matches(AttribDetails attrib)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Exemplo n.º 5
0
 public override bool Matches(AttribDetails attrib)
 {
     return true;
 }
Exemplo n.º 6
0
        public override bool Matches(AttribDetails ad)
        {
            if (!string.IsNullOrEmpty(m_attrName) && string.Compare(ad.localName, m_attrName, true) != 0)
                return false;

            int iValue = Int32.Parse(ad.value);

            return iValue > m_maxValue;


        }
Exemplo n.º 7
0
        public override bool Matches(AttribDetails ad)
        {
            if (!string.IsNullOrEmpty(m_attrName) && string.Compare(ad.localName, m_attrName, true) != 0)
                return false;

            if (string.IsNullOrEmpty(ad.value))
                return false;

            return ad.value.IndexOf(m_valuePattern) != -1;
        }
Exemplo n.º 8
0
        public override bool Matches(AttribDetails ad)
        {
            object oName = ad.localName;
            object oThisName = this.m_attrName;

            if (!string.IsNullOrEmpty(m_attrName) && oName != oThisName)
                return false;

            string sThisName = ad.value;
            if (string.IsNullOrEmpty(sThisName) && m_iLength != 0)
                return false;

            if(sThisName.Length < m_iLength)
                return false;

            if(sThisName.StartsWith(m_attrStartValue))
                return true;

            return false;
        }
Exemplo n.º 9
0
 public abstract bool Matches(AttribDetails attrib);