コード例 #1
0
        public override bool ComapreAttributes(ObjectAttribute lRemoteAttribute)
        {
            if (lRemoteAttribute.GetType() != typeof(ObjectAttributeBool))
                return false;

            if (lRemoteAttribute.Value != Value)
                return false;

            return true;
        }
コード例 #2
0
        public override bool ComapreAttributes(ObjectAttribute RemoteAttribute)
        {
            if (RemoteAttribute.GetAttributeType() != AttributeType.Integer)
                return false;

            ObjectAttributeInt lRemoteAttribute = (ObjectAttributeInt)RemoteAttribute;

            if (lRemoteAttribute.GetAttributeValue() != AttributeValue)
                return false;

            return true;
        }
コード例 #3
0
 public override void SetAttribute(ObjectAttribute lObjectAttribute)
 {
     ObjectAttributeString StringAttribute= (ObjectAttributeString)lObjectAttribute;
     if (HtmlElement.getAttribute(lObjectAttribute.GetAttributeName(), 0)!=null)
     {
         HtmlElement.setAttribute(lObjectAttribute.GetAttributeName(), StringAttribute.GetAttributeValue(), 0);
     }
 }
コード例 #4
0
 public override void AddAttribute(ObjectAttribute lObjectAttribute)
 {
     return;
 }
コード例 #5
0
 public override void AddAttribute(ObjectAttribute lObjectAttribute)
 {
     Attributes.Add(lObjectAttribute);
 }
コード例 #6
0
 public virtual bool ComapreAttributes(ObjectAttribute RemoteAttribute)
 {
     return false;
 }
コード例 #7
0
 public virtual void SetAttribute(ObjectAttribute lObjectAttribute)
 {
     return;
 }
コード例 #8
0
        public override bool ComapreAttributes(ObjectAttribute RemoteAttribute)
        {
            if (RemoteAttribute == null)
                return false;

            if (RemoteAttribute.GetAttributeType() != AttributeType.String)
                return false;

            ObjectAttributeString lRemoteAttribute = (ObjectAttributeString)RemoteAttribute;

            if (lRemoteAttribute.GetAttributeValue() == null)
                return false;

            Match m = Regex.Match(lRemoteAttribute.GetAttributeValue(), Match);
            if (m.Success)
                return true;

            return false;
        }
コード例 #9
0
        public override bool ComapreAttributes(ObjectAttribute lRemoteAttribute)
        {
            if (lRemoteAttribute == null)
                return false;

            if (lRemoteAttribute.GetType() != typeof(ObjectAttributeString))
                return false;

            if (lRemoteAttribute.Value == null)
                return false;

            if (Value == "")//Regex makes this wrong
                if (lRemoteAttribute.Value != Value)
                    return false;

            Match m = Regex.Match(lRemoteAttribute.Value, Value);
            if (m.Success)
                return true;

            return false;
        }
コード例 #10
0
 public void AddFunctionParameter(ObjectAttribute lParameter)
 {
     Parameters.Add(lParameter);
 }