Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Xml / System / Xml / schema / XmlSchemaSimpleTypeRestriction.cs / 1305376 / XmlSchemaSimpleTypeRestriction.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Schema {
using System.Collections;
using System.Xml.Serialization;
///
///
/// [To be supplied.]
///
public class XmlSchemaSimpleTypeRestriction : XmlSchemaSimpleTypeContent {
XmlQualifiedName baseTypeName = XmlQualifiedName.Empty;
XmlSchemaSimpleType baseType;
XmlSchemaObjectCollection facets = new XmlSchemaObjectCollection();
///
///
/// [To be supplied.]
///
[XmlAttribute("base")]
public XmlQualifiedName BaseTypeName {
get { return baseTypeName; }
set { baseTypeName = (value == null ? XmlQualifiedName.Empty : value); }
}
///
///
/// [To be supplied.]
///
[XmlElement("simpleType", typeof(XmlSchemaSimpleType))]
public XmlSchemaSimpleType BaseType {
get { return baseType; }
set { baseType = value; }
}
///
///
/// [To be supplied.]
///
[XmlElement("length", typeof(XmlSchemaLengthFacet)),
XmlElement("minLength", typeof(XmlSchemaMinLengthFacet)),
XmlElement("maxLength", typeof(XmlSchemaMaxLengthFacet)),
XmlElement("pattern", typeof(XmlSchemaPatternFacet)),
XmlElement("enumeration", typeof(XmlSchemaEnumerationFacet)),
XmlElement("maxInclusive", typeof(XmlSchemaMaxInclusiveFacet)),
XmlElement("maxExclusive", typeof(XmlSchemaMaxExclusiveFacet)),
XmlElement("minInclusive", typeof(XmlSchemaMinInclusiveFacet)),
XmlElement("minExclusive", typeof(XmlSchemaMinExclusiveFacet)),
XmlElement("totalDigits", typeof(XmlSchemaTotalDigitsFacet)),
XmlElement("fractionDigits", typeof(XmlSchemaFractionDigitsFacet)),
XmlElement("whiteSpace", typeof(XmlSchemaWhiteSpaceFacet))]
public XmlSchemaObjectCollection Facets {
get { return facets; }
}
internal override XmlSchemaObject Clone() {
XmlSchemaSimpleTypeRestriction newRestriction = (XmlSchemaSimpleTypeRestriction)MemberwiseClone();
newRestriction.BaseTypeName = baseTypeName.Clone();
return newRestriction;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// [....]
//-----------------------------------------------------------------------------
namespace System.Xml.Schema {
using System.Collections;
using System.Xml.Serialization;
///
///
/// [To be supplied.]
///
public class XmlSchemaSimpleTypeRestriction : XmlSchemaSimpleTypeContent {
XmlQualifiedName baseTypeName = XmlQualifiedName.Empty;
XmlSchemaSimpleType baseType;
XmlSchemaObjectCollection facets = new XmlSchemaObjectCollection();
///
///
/// [To be supplied.]
///
[XmlAttribute("base")]
public XmlQualifiedName BaseTypeName {
get { return baseTypeName; }
set { baseTypeName = (value == null ? XmlQualifiedName.Empty : value); }
}
///
///
/// [To be supplied.]
///
[XmlElement("simpleType", typeof(XmlSchemaSimpleType))]
public XmlSchemaSimpleType BaseType {
get { return baseType; }
set { baseType = value; }
}
///
///
/// [To be supplied.]
///
[XmlElement("length", typeof(XmlSchemaLengthFacet)),
XmlElement("minLength", typeof(XmlSchemaMinLengthFacet)),
XmlElement("maxLength", typeof(XmlSchemaMaxLengthFacet)),
XmlElement("pattern", typeof(XmlSchemaPatternFacet)),
XmlElement("enumeration", typeof(XmlSchemaEnumerationFacet)),
XmlElement("maxInclusive", typeof(XmlSchemaMaxInclusiveFacet)),
XmlElement("maxExclusive", typeof(XmlSchemaMaxExclusiveFacet)),
XmlElement("minInclusive", typeof(XmlSchemaMinInclusiveFacet)),
XmlElement("minExclusive", typeof(XmlSchemaMinExclusiveFacet)),
XmlElement("totalDigits", typeof(XmlSchemaTotalDigitsFacet)),
XmlElement("fractionDigits", typeof(XmlSchemaFractionDigitsFacet)),
XmlElement("whiteSpace", typeof(XmlSchemaWhiteSpaceFacet))]
public XmlSchemaObjectCollection Facets {
get { return facets; }
}
internal override XmlSchemaObject Clone() {
XmlSchemaSimpleTypeRestriction newRestriction = (XmlSchemaSimpleTypeRestriction)MemberwiseClone();
newRestriction.BaseTypeName = baseTypeName.Clone();
return newRestriction;
}
}
}
// 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
- XmlObjectSerializerReadContextComplex.cs
- FontCollection.cs
- EntityConnectionStringBuilder.cs
- MenuStrip.cs
- ListParagraph.cs
- AsymmetricSignatureDeformatter.cs
- QueueAccessMode.cs
- BackgroundFormatInfo.cs
- HttpRequest.cs
- DriveNotFoundException.cs
- WizardStepBase.cs
- OleDbStruct.cs
- DLinqColumnProvider.cs
- SapiRecognizer.cs
- PageFunction.cs
- _ListenerRequestStream.cs
- EnglishPluralizationService.cs
- Compiler.cs
- MultipartContentParser.cs
- DataContract.cs
- CommonObjectSecurity.cs
- SecurityRuntime.cs
- LeafCellTreeNode.cs
- MetadataArtifactLoaderResource.cs
- ToolStripOverflow.cs
- ResXBuildProvider.cs
- Table.cs
- VerificationAttribute.cs
- ParserExtension.cs
- MetadataArtifactLoaderFile.cs
- ActivitySurrogate.cs
- PipeSecurity.cs
- HostProtectionPermission.cs
- Transactions.cs
- FileSystemInfo.cs
- BitmapImage.cs
- DesignerDataRelationship.cs
- AesManaged.cs
- ToolStripActionList.cs
- WebCategoryAttribute.cs
- PresentationSource.cs
- NotificationContext.cs
- EmbeddedObject.cs
- UriTemplatePathSegment.cs
- ClientScriptManager.cs
- LineSegment.cs
- TraceProvider.cs
- SoapAttributeOverrides.cs
- BitConverter.cs
- ConfigurationLockCollection.cs
- SectionXmlInfo.cs
- WebServiceResponse.cs
- DetailsViewCommandEventArgs.cs
- EntityDataSourceViewSchema.cs
- DataGridItemEventArgs.cs
- mil_commands.cs
- XmlSignificantWhitespace.cs
- MenuItem.cs
- ScriptHandlerFactory.cs
- StringReader.cs
- XPathAncestorIterator.cs
- ManifestResourceInfo.cs
- InputDevice.cs
- XmlSortKeyAccumulator.cs
- RelationshipDetailsRow.cs
- TextEffectResolver.cs
- SystemEvents.cs
- HttpCachePolicy.cs
- HtmlControl.cs
- SchemaTableOptionalColumn.cs
- XamlWriter.cs
- CheckBox.cs
- SessionEndedEventArgs.cs
- XmlIncludeAttribute.cs
- SecureUICommand.cs
- TypeNameConverter.cs
- Brush.cs
- TreePrinter.cs
- BindValidator.cs
- OutputCacheProviderCollection.cs
- AxisAngleRotation3D.cs
- SimpleFieldTemplateFactory.cs
- XmlQueryContext.cs
- RequestUriProcessor.cs
- SqlDataSourceFilteringEventArgs.cs
- GridViewUpdateEventArgs.cs
- RTLAwareMessageBox.cs
- DataServiceProviderWrapper.cs
- HelpKeywordAttribute.cs
- GeometryCollection.cs
- PolicyUnit.cs
- CalendarDesigner.cs
- PermissionAttributes.cs
- Axis.cs
- ArraySegment.cs
- util.cs
- ProxyElement.cs
- WindowsSpinner.cs
- FixedTextContainer.cs
- TabControlAutomationPeer.cs