Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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 check) 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. // //[....] //----------------------------------------------------------------------------- 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 check) 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlInputPassword.cs
- DayRenderEvent.cs
- BaseServiceProvider.cs
- FileRecordSequenceCompletedAsyncResult.cs
- SynchronizedPool.cs
- LicenseException.cs
- ObjectToken.cs
- PreviewKeyDownEventArgs.cs
- DesignerHost.cs
- StatusBarDrawItemEvent.cs
- SqlAliasesReferenced.cs
- XmlDownloadManager.cs
- ProfilePropertySettings.cs
- ApplicationInterop.cs
- BooleanProjectedSlot.cs
- StylusPointPropertyId.cs
- xdrvalidator.cs
- PersonalizableAttribute.cs
- DataGridItemAttachedStorage.cs
- ListViewSortEventArgs.cs
- TextProviderWrapper.cs
- FileAuthorizationModule.cs
- DataGridViewMethods.cs
- DiscreteKeyFrames.cs
- SchemaTableColumn.cs
- ObjectSecurityT.cs
- BitmapPalettes.cs
- HttpRequest.cs
- ActivationArguments.cs
- FontFamilyValueSerializer.cs
- WinFormsSecurity.cs
- TaiwanCalendar.cs
- SHA256.cs
- EventProviderWriter.cs
- RectAnimationClockResource.cs
- TreeNodeStyleCollection.cs
- BasicExpressionVisitor.cs
- ToolStripDropDownButton.cs
- RewritingPass.cs
- VisualStyleRenderer.cs
- SubpageParaClient.cs
- DataGridViewRowHeaderCell.cs
- PropertyChangedEventManager.cs
- JournalNavigationScope.cs
- StateDesigner.TransitionInfo.cs
- DiscoveryClientChannelBase.cs
- BufferModesCollection.cs
- HybridObjectCache.cs
- XmlSchemaElement.cs
- GlyphRunDrawing.cs
- Filter.cs
- DataPointer.cs
- RouteData.cs
- UInt64Storage.cs
- DirectoryRootQuery.cs
- SecUtil.cs
- SmiTypedGetterSetter.cs
- ObjectDataProvider.cs
- DbConnectionPoolOptions.cs
- SingleTagSectionHandler.cs
- FontSource.cs
- DrawItemEvent.cs
- DSASignatureDeformatter.cs
- SystemNetworkInterface.cs
- TextSegment.cs
- HashSetDebugView.cs
- FontFamilyIdentifier.cs
- GrammarBuilder.cs
- DataPagerFieldItem.cs
- AssertFilter.cs
- PageSettings.cs
- Cell.cs
- TaskScheduler.cs
- ReferenceAssemblyAttribute.cs
- Mouse.cs
- SelectionEditor.cs
- DbInsertCommandTree.cs
- WebServiceData.cs
- ExpressionBuilder.cs
- CookieProtection.cs
- Memoizer.cs
- SoapReflectionImporter.cs
- ResourceContainer.cs
- GeneralEndpointIdentity.cs
- XmlHierarchicalEnumerable.cs
- IdentityValidationException.cs
- ComponentSerializationService.cs
- ThreadStartException.cs
- AuthenticationServiceManager.cs
- ExpressionNormalizer.cs
- AdvancedBindingEditor.cs
- BooleanStorage.cs
- UIElement3DAutomationPeer.cs
- AccessControlList.cs
- SafeNativeMethods.cs
- CollectionViewGroupInternal.cs
- ProfileEventArgs.cs
- Command.cs
- ExceptionHandlerDesigner.cs
- HttpCacheVaryByContentEncodings.cs