internal StyleType() { this.Name = string.Empty; this.Title = string.Empty; this.Abstract = string.Empty; this.StyleUri = new UriAndFormatType(); this.StyleSheetUri = new UriAndFormatType(); this.LegendUri = new LogoOrLegendUriType(); }
// All the following use XPath search strings to find various bits of information in the // server's WMS capabilities description. internal static UriAndFormatType[] GetUriAndFormatInstances(System.Xml.XPath.XPathNavigator node, string pattern) { System.Xml.XPath.XPathNodeIterator iter = node.Select(Capabilities.ExpandPattern(pattern)); UriAndFormatType[] retVal = new UriAndFormatType[iter.Count]; while (iter.MoveNext()) { int i = iter.CurrentPosition - 1; retVal[i] = new UriAndFormatType(); retVal[i].Format = Capabilities.GetStringInstance(iter.Current, @"./Format"); retVal[i].Uri = Capabilities.GetOnlineResourceInstance(iter.Current, @"./OnlineResource"); } return(retVal); }
public override bool Equals(System.Object obj) { if (obj == null) { return(false); } if (this == obj) { return(true); } if (obj.GetType() != this.GetType()) { return(false); } UriAndFormatType t = (UriAndFormatType)obj; return(this.Uri.Equals(t.Uri) && this.Format.Equals(t.Format)); }
internal LogoOrLegendUriType() { this.Uri = new UriAndFormatType(); }
internal MetadataUriType() { this.Type = string.Empty; this.MetadataUri = new UriAndFormatType(); }