Esempio n. 1
0
 public AttributeParamImpl(IXmlAttribute xmlAttribute,IParameterDescriptorProvider parameterDescriptorProvider)
 {
     name = xmlAttribute.AttributeName;
     nameDocumentRange = xmlAttribute.ToTreeNode().NameNode.GetDocumentRange();
     stringValue = xmlAttribute.UnquotedValue;
     this.parameterDescriptorProvider = parameterDescriptorProvider;
 }
Esempio n. 2
0
        private void CreateReferenceAttributeValue(IL4NElement element, IXmlAttribute attribute)
        {
            if(attribute.Value == null)
                return;

            ReferenceParser parser = new ReferenceParser();
            IXmlAttributeValue newElement = parser.ParseReferenceName(attribute.Value);
            IXmlAttributeValueNode childNode = attribute.Value.ToTreeNode();
            ITreeNode parent = attribute.ToTreeNode();
            ((CompositeElement)parent).AddChildAfter(newElement.ToTreeNode(), childNode);
            ((CompositeElement)parent).DeleteChildRange(childNode, childNode);
        }
Esempio n. 3
0
 private void ReplaceAttributeValue(IXmlAttribute attribute, IXmlAttributeValue newElement)
 {
     IXmlAttributeValueNode childNode = attribute.Value.ToTreeNode();
     ITreeNode parent = attribute.ToTreeNode();
     ((CompositeElement)parent).AddChildAfter(newElement.ToTreeNode(), childNode);
     ((CompositeElement)parent).DeleteChildRange(childNode, childNode);
 }