Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / Xml / System / Xml / schema / SchemaEntity.cs / 1 / SchemaEntity.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Schema { using System; using System.Diagnostics; using System.Net; internal sealed class SchemaEntity { private XmlQualifiedName name; // Name of entity private String url; // Url for external entity (system id) private String pubid; // Pubid for external entity private String text; // Text for internal entity private XmlQualifiedName ndata = XmlQualifiedName.Empty; // NDATA identifier private int lineNumber; // line number private int linePosition; // character postion private bool isParameter; // parameter entity flag private bool isExternal; // external entity flag private bool isProcessed; // whether entity is being Processed. (infinite recurrsion private bool isDeclaredInExternal; // declared in external markup or not private string baseURI; private string declaredURI; internal SchemaEntity(XmlQualifiedName name, bool isParameter) { this.name = name; this.isParameter = isParameter; } internal static bool IsPredefinedEntity(String n) { return(n == "lt" || n == "gt" || n == "amp" || n == "apos" || n == "quot"); } internal XmlQualifiedName Name { get { return name;} } internal String Url { get { return url;} set { url = value; isExternal = true;} } internal String Pubid { get { return pubid;} set { pubid = value;} } internal bool IsProcessed { get { return isProcessed;} set { isProcessed = value;} } internal bool IsExternal { get { return isExternal;} set { isExternal = value;} } internal bool DeclaredInExternal { get { return isDeclaredInExternal;} set { isDeclaredInExternal = value;} } internal bool IsParEntity { get { return isParameter;} set { isParameter = value;} } internal XmlQualifiedName NData { get { return ndata;} set { ndata = value;} } internal String Text { get { return text;} set { text = value; isExternal = false;} } internal int Line { get { return lineNumber;} set { lineNumber = value;} } internal int Pos { get { return linePosition;} set { linePosition = value;} } internal String BaseURI { get { return (baseURI == null) ? String.Empty : baseURI; } set { baseURI = value; } } internal String DeclaredURI { get { return (declaredURI == null) ? String.Empty : declaredURI; } set { declaredURI = 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
- NativeRightsManagementAPIsStructures.cs
- ThumbAutomationPeer.cs
- CodeTypeReferenceExpression.cs
- TableStyle.cs
- InkPresenterAutomationPeer.cs
- HttpServerVarsCollection.cs
- CommunicationObject.cs
- XmlComment.cs
- ContainerActivationHelper.cs
- NameObjectCollectionBase.cs
- EventMappingSettings.cs
- EraserBehavior.cs
- ISAPIApplicationHost.cs
- SHA512Managed.cs
- Number.cs
- BindingExpressionBase.cs
- SQLGuidStorage.cs
- TripleDES.cs
- IPipelineRuntime.cs
- MultiTargetingUtil.cs
- ListViewHitTestInfo.cs
- MemberCollection.cs
- WebControl.cs
- SiteMapNodeItem.cs
- SwitchAttribute.cs
- CodeMethodMap.cs
- HttpHostedTransportConfiguration.cs
- ToolStripDropDownClosingEventArgs.cs
- AttributeCollection.cs
- AssertSection.cs
- OdbcErrorCollection.cs
- MarshalByRefObject.cs
- wgx_exports.cs
- MissingSatelliteAssemblyException.cs
- ExpressionHelper.cs
- CacheEntry.cs
- Html32TextWriter.cs
- METAHEADER.cs
- XmlRawWriterWrapper.cs
- ThemeInfoAttribute.cs
- DispatcherTimer.cs
- ComplexType.cs
- SessionStateUtil.cs
- QuaternionKeyFrameCollection.cs
- HttpRuntime.cs
- XslUrlEditor.cs
- WebPartDisplayModeCollection.cs
- _MultipleConnectAsync.cs
- ActivityPreviewDesigner.cs
- TemplateContentLoader.cs
- BaseProcessor.cs
- ApplicationDirectory.cs
- ConnectionStringsSection.cs
- BitSet.cs
- GradientStopCollection.cs
- UseAttributeSetsAction.cs
- WebEventCodes.cs
- CmsInterop.cs
- Selection.cs
- HostExecutionContextManager.cs
- XsdDuration.cs
- AttributeParameterInfo.cs
- CircleHotSpot.cs
- SqlGenericUtil.cs
- Base64Decoder.cs
- DataGridViewControlCollection.cs
- XmlExpressionDumper.cs
- TextTreeInsertUndoUnit.cs
- BitmapEffect.cs
- NameValueFileSectionHandler.cs
- EntityDesignerDataSourceView.cs
- BrowserInteropHelper.cs
- HtmlMeta.cs
- Message.cs
- TextContainer.cs
- EntityContainerAssociationSetEnd.cs
- ImageSourceConverter.cs
- UserControl.cs
- XamlToRtfWriter.cs
- PropertyConverter.cs
- ScriptRegistrationManager.cs
- WindowsRebar.cs
- BamlMapTable.cs
- XamlSerializerUtil.cs
- ObjectStateManager.cs
- DataContractSerializerServiceBehavior.cs
- MetabaseServerConfig.cs
- WsdlHelpGeneratorElement.cs
- ObjectTag.cs
- ExpandCollapseProviderWrapper.cs
- CodeCatchClauseCollection.cs
- TaskExceptionHolder.cs
- ModelVisual3D.cs
- TemplateApplicationHelper.cs
- DefaultSection.cs
- COSERVERINFO.cs
- Visual3D.cs
- LinkTarget.cs
- CheckBoxAutomationPeer.cs
- ResourceDescriptionAttribute.cs