Code:
/ DotNET / DotNET / 8.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
- BitmapScalingModeValidation.cs
- EmptyStringExpandableObjectConverter.cs
- WebPartManager.cs
- Throw.cs
- StringHelper.cs
- ScriptingProfileServiceSection.cs
- ViewCellRelation.cs
- columnmapfactory.cs
- CustomBindingCollectionElement.cs
- DataGridPreparingCellForEditEventArgs.cs
- Byte.cs
- Cell.cs
- MarkupWriter.cs
- TreeBuilderXamlTranslator.cs
- SafeNativeMethods.cs
- WorkflowTimerService.cs
- BindingList.cs
- MailAddress.cs
- GridViewEditEventArgs.cs
- CompiledRegexRunner.cs
- Binding.cs
- DetailsViewDeletedEventArgs.cs
- Transform.cs
- ListViewAutomationPeer.cs
- Tracking.cs
- WindowsFormsHostPropertyMap.cs
- ExtenderControl.cs
- CorePropertiesFilter.cs
- MeasurementDCInfo.cs
- ParameterModifier.cs
- DisplayMemberTemplateSelector.cs
- HandleInitializationContext.cs
- BamlResourceDeserializer.cs
- TextTreeUndoUnit.cs
- TableAutomationPeer.cs
- EntityDataSourceView.cs
- Int16Animation.cs
- SystemParameters.cs
- CodeTypeReferenceCollection.cs
- SelectionGlyphBase.cs
- RenderDataDrawingContext.cs
- MappingMetadataHelper.cs
- FlowPosition.cs
- StringDictionaryEditor.cs
- EntityDataSourceViewSchema.cs
- HtmlButton.cs
- MethodBody.cs
- HttpCachePolicy.cs
- JoinTreeSlot.cs
- FontSourceCollection.cs
- DescendantBaseQuery.cs
- TranslateTransform3D.cs
- ManifestResourceInfo.cs
- XPathDocumentNavigator.cs
- SqlTypesSchemaImporter.cs
- DataGridPageChangedEventArgs.cs
- CompressStream.cs
- WebPartZone.cs
- PasswordRecovery.cs
- HwndSubclass.cs
- Debug.cs
- SolidColorBrush.cs
- FixedSOMImage.cs
- PolygonHotSpot.cs
- WebPartChrome.cs
- DiffuseMaterial.cs
- _SpnDictionary.cs
- StaticContext.cs
- EdmEntityTypeAttribute.cs
- HttpRuntimeSection.cs
- NetCodeGroup.cs
- EntryIndex.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- HttpStreamXmlDictionaryReader.cs
- Point3DCollectionConverter.cs
- ConfigurationLockCollection.cs
- ConsoleTraceListener.cs
- TraceProvider.cs
- CharEntityEncoderFallback.cs
- InstanceKeyCompleteException.cs
- LoginUtil.cs
- DivideByZeroException.cs
- TextTreeRootTextBlock.cs
- ToolStripRenderEventArgs.cs
- PipelineModuleStepContainer.cs
- PreDigestedSignedInfo.cs
- DbModificationClause.cs
- XmlNodeChangedEventArgs.cs
- OdbcHandle.cs
- KnownBoxes.cs
- CalculatedColumn.cs
- SafeSystemMetrics.cs
- StandardCommands.cs
- EditorPart.cs
- DataMemberListEditor.cs
- ProfileEventArgs.cs
- WindowAutomationPeer.cs
- VariableDesigner.xaml.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ModelServiceImpl.cs