Beispiel #1
0
 /// <summary>
 /// Decodes the specified value.
 /// </summary>
 /// <param name="value">The value.</param>
 protected void decode(AccessDescription[] value)
 {
     foreach (AccessDescription ad in value)
     {
         AccessDesc accDesc = new AccessDesc()
         {
             Method   = fromOID(ad.AccessMethod),
             Location = new OSCAGeneralName(ad.AccessLocation)
         };
         accessDesc.Add(accDesc);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Create extension from XML profile file entry
 /// </summary>
 /// <param name="xml">XML version of the extension</param>
 protected InformationAccess(XElement xml) : base(xml)
 {
     foreach (XElement name in xmlValue.Descendants("accessDescription"))
     {
         AccessDesc descr = new AccessDesc()
         {
             Method   = toMethod(name.Element("method").Value),
             Location = new OSCAGeneralName()
             {
                 Name = name.Element("location").Value,
                 Type = generalNames.getGenName(name.Element("location").Attribute("type").Value)
             }
         };
         accessDesc.Add(descr);
     }
 }
Beispiel #3
0
 /// <summary>
 /// Remove an AccessDescription Name from the extension
 /// </summary>
 /// <param name="Descr">Access description.</param>
 public void Remove(AccessDesc Descr)
 {
     accessDesc.Remove(Descr);
 }
Beispiel #4
0
 /// <summary>
 /// Add a new AccessDescription Name to the extension
 /// </summary>
 /// <param name="Descr">Access description.</param>
 public void Add(AccessDesc Descr)
 {
     accessDesc.Add(Descr);
 }