示例#1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="oldHeadPath"></param>
 /// <param name="oldTailPath"></param>
 /// <param name="oldNodeName"></param>
 /// <param name="newTextFormat"></param>
 public CustomXmlTransformRule(string oldHeadPath, string oldTailPath, string oldNodeName, CustomXmlTransformTextFormat newTextFormat)
 {
     Kind          = CustomXmlTransformRuleKind.ContentFormat;
     OldHeadPath   = oldHeadPath;
     OldTailPath   = oldTailPath;
     OldNodeName   = oldNodeName;
     NewTextFormat = newTextFormat;
 }
示例#2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="oldHeadPath"></param>
 /// <param name="oldTailPath"></param>
 /// <param name="oldNodeName"></param>
 /// <param name="defaultValueText"></param>
 public CustomXmlTransformRule(string oldHeadPath, string oldTailPath, string oldNodeName, string defaultValueText)
 {
     Kind             = CustomXmlTransformRuleKind.RemoveDefaultValueNode;
     OldHeadPath      = oldHeadPath;
     OldTailPath      = oldTailPath;
     OldNodeName      = oldNodeName;
     DefaultValueText = defaultValueText;
 }
示例#3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="oldHeadPath"></param>
 /// <param name="oldTailPath"></param>
 /// <param name="oldNodeName"></param>
 /// <param name="oldXsiType"></param>
 /// <param name="newNodeName"></param>
 /// <param name="newXsiType"></param>
 public CustomXmlTransformRule(string oldHeadPath, string oldTailPath, string oldNodeName, Type oldXsiType, string newNodeName, Type newXsiType)
 {
     Kind           = CustomXmlTransformRuleKind.TagNameTypeChange;
     OldHeadPath    = oldHeadPath;
     OldTailPath    = oldTailPath;
     OldNodeName    = oldNodeName;
     OldXsiTypeName = (oldXsiType != null) ? oldXsiType.Name : null;
     NewNodeName    = newNodeName;
     NewXsiTypeName = (newXsiType != null) ? newXsiType.Name : null;
 }