本文整理汇总了C#中Generated.getXsiLocation方法的典型用法代码示例。如果您正苦于以下问题:C# Generated.getXsiLocation方法的具体用法?C# Generated.getXsiLocation怎么用?C# Generated.getXsiLocation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Generated
的用法示例。
在下文中一共展示了Generated.getXsiLocation方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: visit
/// <summary>
/// Cleans all text fields in this element
/// </summary>
/// <param name="obj"></param>
/// <param name="visitSubNodes"></param>
public override void visit(Generated.Dictionary obj, bool visitSubNodes)
{
if ( obj.getXsi() != null )
{
obj.setXsi(obj.getXsi().Trim());
}
if ( obj.getXsiLocation() != null )
{
obj.setXsiLocation(obj.getXsiLocation().Trim());
}
base.visit(obj, visitSubNodes);
}
示例2: compareDictionary
//.........这里部分代码省略.........
else
{
if ( other.allTests() != null )
{
foreach ( Generated.Frame otherElement in other.allTests() )
{
diff.appendChanges ( new Diff(obj, HistoricalData.Generated.acceptor.ChangeOperationEnum.aRemove , "Tests", otherElement.Name) );
}
}
}
if ( obj.allTestRefs() != null )
{
if ( other.allTestRefs() != null )
{
foreach ( Generated.FrameRef subElement in obj.allTestRefs() )
{
bool compared = false;
foreach ( Generated.FrameRef otherElement in other.allTestRefs() )
{
if ( subElement.Guid == otherElement.Guid )
{
compareFrameRef ( subElement, otherElement, diff );
compared = true;
break;
}
}
if ( !compared )
{
diff.appendChanges ( new Diff(subElement, HistoricalData.Generated.acceptor.ChangeOperationEnum.aAdd, "TestRefs", "", subElement.Name ) );
}
}
foreach ( Generated.FrameRef otherElement in other.allTestRefs() )
{
bool found = false;
foreach ( Generated.FrameRef subElement in obj.allTestRefs() )
{
if ( subElement.Guid == otherElement.Guid )
{
found = true;
break;
}
}
if ( !found )
{
diff.appendChanges ( new Diff(obj, HistoricalData.Generated.acceptor.ChangeOperationEnum.aRemove , "TestRefs", otherElement.Name) );
}
}
}
else
{
foreach ( Generated.FrameRef subElement in obj.allTestRefs() )
{
diff.appendChanges ( new Diff(subElement, HistoricalData.Generated.acceptor.ChangeOperationEnum.aAdd, "TestRefs", "", subElement.Name ) );
}
}
}
else
{
if ( other.allTestRefs() != null )
{
foreach ( Generated.FrameRef otherElement in other.allTestRefs() )
{
diff.appendChanges ( new Diff(obj, HistoricalData.Generated.acceptor.ChangeOperationEnum.aRemove , "TestRefs", otherElement.Name) );
}
}
}
if ( obj.getTranslationDictionary() == null )
{
if ( other.getTranslationDictionary() != null )
{
diff.appendChanges ( new Diff(obj, HistoricalData.Generated.acceptor.ChangeOperationEnum.aChange, "TranslationDictionary", "" ) );
}
}
else
{
compareTranslationDictionary ( obj.getTranslationDictionary(), other.getTranslationDictionary(), diff );
}
if ( obj.getShortcutDictionary() == null )
{
if ( other.getShortcutDictionary() != null )
{
diff.appendChanges ( new Diff(obj, HistoricalData.Generated.acceptor.ChangeOperationEnum.aChange, "ShortcutDictionary", "" ) );
}
}
else
{
compareShortcutDictionary ( obj.getShortcutDictionary(), other.getShortcutDictionary(), diff );
}
if ( !CompareUtil.canonicalStringEquality(obj.getXsi(), other.getXsi()) )
{
diff.appendChanges ( new Diff(obj, HistoricalData.Generated.acceptor.ChangeOperationEnum.aChange, "Xsi", other.getXsi(), obj.getXsi()) );
}
if ( !CompareUtil.canonicalStringEquality(obj.getXsiLocation(), other.getXsiLocation()) )
{
diff.appendChanges ( new Diff(obj, HistoricalData.Generated.acceptor.ChangeOperationEnum.aChange, "XsiLocation", other.getXsiLocation(), obj.getXsiLocation()) );
}
}
示例3: DuplicateDictionary
/// <summary>
/// Duplicates a source Dictionary into its target
/// </summary>
/// <param name="source"></param>
/// <param name="target"></param>
public static void DuplicateDictionary(Generated.Dictionary source, Generated.Dictionary target)
{
if ( source != null && target != null )
{
target.setXsi(source.getXsi());
target.setXsiLocation(source.getXsiLocation());
}
}
示例4: searchDictionary
/// <summary>
/// Searches a specific string in Dictionary and updates the list
/// of model element with all the elements in which that string is found
/// </summary>
/// <param name="obj"></param>
/// <param name="obj">The string to search for</param>
/// <param name="occurences">The list of model elements which hold the searched string</param>
public static void searchDictionary(Generated.Dictionary obj, string searchString, List<ModelElement> occurences)
{
if ( obj.allSpecifications() != null )
{
foreach ( Generated.Specification subElement in obj.allSpecifications() )
{
searchSpecification ( subElement, searchString, occurences );
}
}
if ( obj.allRequirementSets() != null )
{
foreach ( Generated.RequirementSet subElement in obj.allRequirementSets() )
{
searchRequirementSet ( subElement, searchString, occurences );
}
}
if ( obj.allRuleDisablings() != null )
{
foreach ( Generated.RuleDisabling subElement in obj.allRuleDisablings() )
{
searchRuleDisabling ( subElement, searchString, occurences );
}
}
if ( obj.allNameSpaces() != null )
{
foreach ( Generated.NameSpace subElement in obj.allNameSpaces() )
{
searchNameSpace ( subElement, searchString, occurences );
}
}
if ( obj.allNameSpaceRefs() != null )
{
foreach ( Generated.NameSpaceRef subElement in obj.allNameSpaceRefs() )
{
searchNameSpaceRef ( subElement, searchString, occurences );
}
}
if ( obj.allTests() != null )
{
foreach ( Generated.Frame subElement in obj.allTests() )
{
searchFrame ( subElement, searchString, occurences );
}
}
if ( obj.allTestRefs() != null )
{
foreach ( Generated.FrameRef subElement in obj.allTestRefs() )
{
searchFrameRef ( subElement, searchString, occurences );
}
}
if ( obj.getTranslationDictionary() != null )
{
searchTranslationDictionary ( obj.getTranslationDictionary(), searchString, occurences );
}
if ( obj.getShortcutDictionary() != null )
{
searchShortcutDictionary ( obj.getShortcutDictionary(), searchString, occurences );
}
if ( obj.getXsi() != null && obj.getXsi().Contains (searchString) )
{
occurences.Add ( obj );
}
if ( obj.getXsiLocation() != null && obj.getXsiLocation().Contains (searchString) )
{
occurences.Add ( obj );
}
}