Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SafeWaitHandle.cs
- HttpsChannelListener.cs
- HebrewCalendar.cs
- DataGridLengthConverter.cs
- QEncodedStream.cs
- SystemNetHelpers.cs
- DbCommandTree.cs
- PropertyState.cs
- HttpPostServerProtocol.cs
- DataGridPagingPage.cs
- XPathEmptyIterator.cs
- CounterSetInstanceCounterDataSet.cs
- WebSysDescriptionAttribute.cs
- ArrayConverter.cs
- Attribute.cs
- DataGridTableCollection.cs
- DataGridToolTip.cs
- ControlBindingsConverter.cs
- GlyphShapingProperties.cs
- Queue.cs
- HttpRuntimeSection.cs
- SharedDp.cs
- SettingsContext.cs
- GradientStop.cs
- SortedList.cs
- XmlSchema.cs
- ObjectDataSourceSelectingEventArgs.cs
- XmlReader.cs
- DataReaderContainer.cs
- IndentedWriter.cs
- ObjectResult.cs
- CallSiteBinder.cs
- OletxTransactionManager.cs
- ScriptingRoleServiceSection.cs
- GestureRecognitionResult.cs
- CodeCatchClause.cs
- WindowsTokenRoleProvider.cs
- Publisher.cs
- SurrogateEncoder.cs
- DataControlLinkButton.cs
- EmbeddedMailObjectsCollection.cs
- _ProxyRegBlob.cs
- ToolStrip.cs
- LineSegment.cs
- SqlDataSourceFilteringEventArgs.cs
- Compiler.cs
- Mutex.cs
- FileLevelControlBuilderAttribute.cs
- RTLAwareMessageBox.cs
- Script.cs
- AllMembershipCondition.cs
- Part.cs
- DateBoldEvent.cs
- ValueQuery.cs
- SystemUdpStatistics.cs
- DataPagerCommandEventArgs.cs
- DataGridViewColumnCollectionEditor.cs
- CodeLabeledStatement.cs
- GridItemPattern.cs
- OverflowException.cs
- ColorComboBox.cs
- DeobfuscatingStream.cs
- PageStatePersister.cs
- BuildResultCache.cs
- CallTemplateAction.cs
- FlowDocumentView.cs
- TdsParserSafeHandles.cs
- LockedActivityGlyph.cs
- Material.cs
- SmtpTransport.cs
- SecurityHelper.cs
- ActivityExecutor.cs
- ACE.cs
- AssemblyGen.cs
- HtmlControl.cs
- PeerCustomResolverElement.cs
- CodeComment.cs
- SoapExtensionStream.cs
- StyleXamlParser.cs
- ButtonAutomationPeer.cs
- GlyphCache.cs
- PropertyKey.cs
- WebPartConnectionCollection.cs
- IntegrationExceptionEventArgs.cs
- FontInfo.cs
- KeyGesture.cs
- CompressEmulationStream.cs
- ZoneMembershipCondition.cs
- ColorAnimationUsingKeyFrames.cs
- PropertyDescriptorCollection.cs
- ErrorStyle.cs
- PropertyChangeTracker.cs
- HttpProcessUtility.cs
- DesignerSerializationOptionsAttribute.cs
- VBIdentifierNameEditor.cs
- FlowNode.cs
- TypeValidationEventArgs.cs
- FileAuthorizationModule.cs
- MenuItemStyle.cs
- SystemIPAddressInformation.cs