Exemple #1
0
 public AElement(XmlElement elem, XmlPrefixMap map, AElement parent)
 {
     _element          = elem;
     _extensionElement = null;
     _parent           = parent;
     if (SubNodes != null)
     {
         Type t = typeof(ExtensionElements);
         foreach (XmlNode n in SubNodes)
         {
             if (n.NodeType == XmlNodeType.Element)
             {
                 foreach (XMLTag xt in Utility.GetTagAttributes(t))
                 {
                     if (xt.Matches(map, n.Name))
                     {
                         _extensionElement = new ExtensionElements((XmlElement)n, map, this);
                         break;
                     }
                 }
                 if (_extensionElement != null)
                 {
                     break;
                 }
             }
         }
     }
 }
Exemple #2
0
 public DefinitionFile(XmlElement elem, XmlPrefixMap map, AElement parent) : base(elem, map, parent)
 {
     _content = new byte[0];
     if (elem.ChildNodes.Count > 0)
     {
         _content = Convert.FromBase64String((elem.ChildNodes[0] is XmlCDataSection ? ((XmlCDataSection)elem.ChildNodes[0]).InnerText : elem.InnerText));
     }
 }
Exemple #3
0
        public DefinitionVariable(XmlElement elem, XmlPrefixMap map, AElement parent) : base(elem, map, parent)
        {
            string text = elem.InnerText;

            if (elem.ChildNodes[0].NodeType == XmlNodeType.CDATA)
            {
                text = ((XmlCDataSection)elem.ChildNodes[0]).InnerText;
            }
            _value = Utility.ExtractVariableValue((VariableTypes)Enum.Parse(typeof(VariableTypes), this["Type"]), text);
        }
Exemple #4
0
 public AParentElement(XmlElement elem, XmlPrefixMap map, AElement parent)
     : base(elem, map, parent)
 {
     if (SubNodes != null)
     {
         foreach (XmlNode n in SubNodes)
         {
             if (n.NodeType == XmlNodeType.Element)
             {
                 IElement subElem = Utility.ConstructElementType((XmlElement)n, map, this);
                 if (subElem != null)
                 {
                     if (_children == null)
                     {
                         _children = new List <IElement>();
                     }
                     _children.Add(subElem);
                 }
             }
         }
     }
 }
Exemple #5
0
 public SubProcess(XmlElement elem, XmlPrefixMap map, AElement parent) : base(elem, map, parent)
 {
 }
Exemple #6
0
 public Diagram(XmlElement elem, XmlPrefixMap map, AElement parent)
     : base(elem, map, parent)
 {
 }
Exemple #7
0
 public AParentElement(XmlElement elem, XmlPrefixMap map, AElement parent)
     : base(elem, map, parent)
 {
     _children = new List <IElement>();
 }
Exemple #8
0
 public Definition(XmlElement elem, XmlPrefixMap map, AElement parent)
     : base(elem, map, parent)
 {
 }
Exemple #9
0
 public Collaboration(XmlElement elem, XmlPrefixMap map, AElement parent)
     : base(elem, map, parent)
 {
 }