Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / Xml / System / Xml / XPath / Internal / Axis.cs / 1 / Axis.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace MS.Internal.Xml.XPath {
using System;
using System.Xml;
using System.Xml.XPath;
using System.Diagnostics;
using System.Globalization;
internal class Axis : AstNode {
private AxisType axisType;
private AstNode input;
private string prefix;
private string name;
private XPathNodeType nodeType;
protected bool abbrAxis;
public enum AxisType {
Ancestor,
AncestorOrSelf,
Attribute,
Child,
Descendant,
DescendantOrSelf,
Following,
FollowingSibling,
Namespace,
Parent,
Preceding,
PrecedingSibling,
Self,
None
};
// constructor
public Axis(AxisType axisType, AstNode input, string prefix, string name, XPathNodeType nodetype) {
Debug.Assert(prefix != null);
Debug.Assert(name != null);
this.axisType = axisType;
this.input = input;
this.prefix = prefix;
this.name = name;
this.nodeType = nodetype;
}
// constructor
public Axis(AxisType axisType, AstNode input)
: this(axisType, input, string.Empty, string.Empty, XPathNodeType.All)
{
this.abbrAxis = true;
}
public override AstType Type { get {return AstType.Axis;} }
public override XPathResultType ReturnType { get {return XPathResultType.NodeSet;} }
public AstNode Input {
get {return input;}
set {input = value;}
}
public string Prefix { get { return prefix; } }
public string Name { get { return name; } }
public XPathNodeType NodeType { get { return nodeType; } }
public AxisType TypeOfAxis { get { return axisType; } }
public bool AbbrAxis { get { return abbrAxis; } }
// Used by AstTree in Schema
private string urn = string.Empty;
public string Urn {
get { return urn; }
set { urn = value; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ButtonBaseAdapter.cs
- InkCanvasAutomationPeer.cs
- ValueTypeFixupInfo.cs
- DocumentApplicationJournalEntry.cs
- StackOverflowException.cs
- CodeExpressionStatement.cs
- WindowsGraphicsWrapper.cs
- ZoneLinkButton.cs
- SvcFileManager.cs
- DiagnosticsConfiguration.cs
- DbSourceCommand.cs
- DataTemplateKey.cs
- ChangeNode.cs
- _OSSOCK.cs
- DragEvent.cs
- ValueSerializerAttribute.cs
- EntityDataSourceWizardForm.cs
- Size.cs
- XsdValidatingReader.cs
- DesignerActionKeyboardBehavior.cs
- WpfMemberInvoker.cs
- _SSPISessionCache.cs
- BindingOperations.cs
- GeneralTransform3DGroup.cs
- DrawingDrawingContext.cs
- TextDecorationCollection.cs
- SqlBulkCopy.cs
- FunctionNode.cs
- DataControlField.cs
- StateMachineHistory.cs
- ResourceReferenceExpression.cs
- ResourceReferenceKeyNotFoundException.cs
- AudienceUriMode.cs
- HtmlInputCheckBox.cs
- SettingsBase.cs
- WrappedKeySecurityTokenParameters.cs
- ApplicationDirectory.cs
- TextRangeSerialization.cs
- OutOfProcStateClientManager.cs
- InputBinding.cs
- XmlReflectionImporter.cs
- ViewUtilities.cs
- Model3DCollection.cs
- ConnectionStringsExpressionBuilder.cs
- SecureEnvironment.cs
- ReadOnlyDictionary.cs
- Stack.cs
- XamlGridLengthSerializer.cs
- CodeStatementCollection.cs
- GeneralTransform.cs
- WebPartConnectionsConfigureVerb.cs
- Misc.cs
- _DigestClient.cs
- SqlDataSourceCommandEventArgs.cs
- FlowchartStart.xaml.cs
- SignatureResourcePool.cs
- OleStrCAMarshaler.cs
- ScrollEventArgs.cs
- ClientUrlResolverWrapper.cs
- xmlglyphRunInfo.cs
- ChooseAction.cs
- FormClosingEvent.cs
- EncryptionUtility.cs
- DetectEofStream.cs
- QuerySafeNavigator.cs
- MsmqAppDomainProtocolHandler.cs
- BooleanToVisibilityConverter.cs
- DeploymentExceptionMapper.cs
- PersonalizationEntry.cs
- ApplicationTrust.cs
- CommandPlan.cs
- DecimalStorage.cs
- BooleanStorage.cs
- PixelFormat.cs
- ValidationEventArgs.cs
- TransformerTypeCollection.cs
- ArraySegment.cs
- SafeTokenHandle.cs
- SubMenuStyleCollection.cs
- InvalidOleVariantTypeException.cs
- XmlSchemaAttributeGroupRef.cs
- TimersDescriptionAttribute.cs
- XmlTypeMapping.cs
- SmtpFailedRecipientException.cs
- StandardToolWindows.cs
- IncrementalReadDecoders.cs
- DesignTimeDataBinding.cs
- LifetimeMonitor.cs
- WorkflowExecutor.cs
- SocketInformation.cs
- BezierSegment.cs
- Currency.cs
- RowVisual.cs
- RoutedUICommand.cs
- StoreContentChangedEventArgs.cs
- DefaultBinder.cs
- ArgumentsParser.cs
- DigitShape.cs
- TransactionsSectionGroup.cs
- PasswordTextContainer.cs