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
- DataGridViewEditingControlShowingEventArgs.cs
- InstanceData.cs
- AuthenticatedStream.cs
- CodeObjectCreateExpression.cs
- BuildDependencySet.cs
- METAHEADER.cs
- WebPartZoneBase.cs
- XmlSchemaImport.cs
- ReachUIElementCollectionSerializer.cs
- RelationshipManager.cs
- TextTreeText.cs
- WebProxyScriptElement.cs
- XPathParser.cs
- FontCacheUtil.cs
- TreeNodeBindingCollection.cs
- WindowsListView.cs
- IndexedSelectQueryOperator.cs
- LinqDataSourceInsertEventArgs.cs
- Semaphore.cs
- SmiRecordBuffer.cs
- StyleSelector.cs
- ColorConverter.cs
- TextControlDesigner.cs
- TablePattern.cs
- Journal.cs
- FileDetails.cs
- VisualBrush.cs
- ReaderWriterLockSlim.cs
- TCPClient.cs
- XmlAnyAttributeAttribute.cs
- RemoteWebConfigurationHostServer.cs
- SystemResources.cs
- ImportCatalogPart.cs
- ClientSettings.cs
- TypeElement.cs
- GeometryValueSerializer.cs
- SystemDiagnosticsSection.cs
- XmlCharCheckingReader.cs
- HttpResponseHeader.cs
- ServiceAuthorizationManager.cs
- Animatable.cs
- EdmError.cs
- SystemInformation.cs
- TableLayoutSettings.cs
- X509Utils.cs
- BinaryQueryOperator.cs
- IgnoreDataMemberAttribute.cs
- SymbolUsageManager.cs
- EFAssociationProvider.cs
- CheckBoxAutomationPeer.cs
- ConfigurationManagerInternalFactory.cs
- CodeTypeDeclarationCollection.cs
- HtmlTableCellCollection.cs
- ServiceDescriptionReflector.cs
- Models.cs
- OdbcCommand.cs
- ResourceCategoryAttribute.cs
- SortAction.cs
- DeferredReference.cs
- WebPartConnectionsCloseVerb.cs
- AttributeCallbackBuilder.cs
- ListItemParagraph.cs
- TreePrinter.cs
- ValueChangedEventManager.cs
- ZipPackage.cs
- ScaleTransform3D.cs
- EmbeddedMailObject.cs
- TextBoxAutoCompleteSourceConverter.cs
- DataFormats.cs
- CodeMethodInvokeExpression.cs
- CalendarData.cs
- basevalidator.cs
- AppDomainShutdownMonitor.cs
- UITypeEditor.cs
- DllNotFoundException.cs
- EventWaitHandle.cs
- MSAAWinEventWrap.cs
- PenContexts.cs
- LogStream.cs
- ProgressBar.cs
- XmlDomTextWriter.cs
- PositiveTimeSpanValidator.cs
- Timer.cs
- CharAnimationBase.cs
- SessionParameter.cs
- XmlAttributeCache.cs
- DelegateInArgument.cs
- Table.cs
- Debug.cs
- OleDbParameter.cs
- EventLogSession.cs
- ClipboardProcessor.cs
- Debugger.cs
- SpellerHighlightLayer.cs
- HyperLinkField.cs
- TemplateBindingExpression.cs
- UxThemeWrapper.cs
- TemplateAction.cs
- TranslateTransform3D.cs
- BuilderPropertyEntry.cs