Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Compress.cs
- UInt16Converter.cs
- RijndaelManagedTransform.cs
- Registry.cs
- InvalidPropValue.cs
- DynamicRendererThreadManager.cs
- ExpressionBuilder.cs
- WebControlsSection.cs
- XmlTextAttribute.cs
- XmlSiteMapProvider.cs
- Journal.cs
- InputProviderSite.cs
- FileLevelControlBuilderAttribute.cs
- SchemaCollectionPreprocessor.cs
- AttributeEmitter.cs
- WebPartDisplayModeCancelEventArgs.cs
- GorillaCodec.cs
- StringAnimationUsingKeyFrames.cs
- PreservationFileWriter.cs
- AutomationPatternInfo.cs
- BitmapData.cs
- ColorTypeConverter.cs
- HtmlImageAdapter.cs
- Double.cs
- RestClientProxyHandler.cs
- ByteRangeDownloader.cs
- TextWriter.cs
- FontWeightConverter.cs
- PassportAuthenticationModule.cs
- HwndMouseInputProvider.cs
- DocumentGridContextMenu.cs
- IEnumerable.cs
- EnumValAlphaComparer.cs
- ConfigXmlAttribute.cs
- BaseValidatorDesigner.cs
- ConnectionStringsExpressionBuilder.cs
- ApplicationSecurityManager.cs
- SqlDataRecord.cs
- FontUnit.cs
- ShaderRenderModeValidation.cs
- SdlChannelSink.cs
- RepeatButtonAutomationPeer.cs
- OracleConnectionStringBuilder.cs
- MultitargetingHelpers.cs
- Translator.cs
- ChildTable.cs
- SelectionEditingBehavior.cs
- TextElementEnumerator.cs
- HttpApplicationStateBase.cs
- ProxyAttribute.cs
- HttpResponseHeader.cs
- EastAsianLunisolarCalendar.cs
- ProviderConnectionPointCollection.cs
- GetImportedCardRequest.cs
- MethodBuilderInstantiation.cs
- CheckBox.cs
- MenuItemCollectionEditorDialog.cs
- LedgerEntry.cs
- InstancePersistenceException.cs
- XmlSchemaSimpleTypeUnion.cs
- _Rfc2616CacheValidators.cs
- SerialPort.cs
- ProxyWebPartManager.cs
- DataGridViewEditingControlShowingEventArgs.cs
- SqlDataReader.cs
- HandlerBase.cs
- TransformerConfigurationWizardBase.cs
- Roles.cs
- PanelStyle.cs
- DockPatternIdentifiers.cs
- TextWriter.cs
- WindowsListViewGroupHelper.cs
- BamlBinaryWriter.cs
- MailAddressCollection.cs
- RefType.cs
- RsaEndpointIdentity.cs
- IndexedGlyphRun.cs
- ServiceRoute.cs
- AxImporter.cs
- CodeDelegateCreateExpression.cs
- ConnectionManagementSection.cs
- NativeObjectSecurity.cs
- DebugController.cs
- PackageDigitalSignature.cs
- EnumUnknown.cs
- WsatConfiguration.cs
- DispatcherFrame.cs
- _ShellExpression.cs
- BmpBitmapEncoder.cs
- XmlUtilWriter.cs
- PointHitTestResult.cs
- StreamWriter.cs
- HostedHttpContext.cs
- RoutedCommand.cs
- SmiGettersStream.cs
- ButtonFieldBase.cs
- TabPanel.cs
- WindowsTokenRoleProvider.cs
- StylusTip.cs
- ReadOnlyObservableCollection.cs