Exemplo n.º 1
0
 /// <summary>
 /// Returns all properties of this graph element
 /// </summary>
 /// <param name="myFilter">An optional filter function</param>
 /// <returns>An enumerable of propertyID/propertyValue</returns>
 protected IEnumerable <PropertyContainer> GetAllPropertiesProtected(PropertyHyperGraphFilter.GraphElementStructuredPropertyFilter myFilter = null)
 {
     if (_structuredProperties != null)
     {
         foreach (var aProperty in _structuredProperties)
         {
             if (myFilter != null)
             {
                 if (myFilter(aProperty.Key, aProperty.Value))
                 {
                     yield return(new PropertyContainer {
                         PropertyID = aProperty.Key, Property = aProperty.Value
                     });
                 }
             }
             else
             {
                 yield return(new PropertyContainer {
                     PropertyID = aProperty.Key, Property = aProperty.Value
                 });
             }
         }
     }
     yield break;
 }
Exemplo n.º 2
0
 public IEnumerable <PropertyContainer> GetAllProperties(PropertyHyperGraphFilter.GraphElementStructuredPropertyFilter myFilter = null)
 {
     return(_ServiceToken.EdgeService.GetAllPropertiesByEdgeInstance(_ServiceToken.SecurityToken, _ServiceToken.TransactionToken, ConvertHelper.ToServiceEdgeInstance(this))
            .Select(x => new PropertyContainer {
         PropertyID = x.PropertyID, Property = (IComparable)x.Property
     }));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Returns all properties of this graph element
 /// </summary>
 /// <param name="myFilter">An optional filter function</param>
 /// <returns>An enumerable of propertyID/propertyValue</returns>
 protected IEnumerable <Tuple <long, IComparable> > GetAllPropertiesProtected(PropertyHyperGraphFilter.GraphElementStructuredPropertyFilter myFilter = null)
 {
     if (_structuredProperties != null)
     {
         foreach (var aProperty in _structuredProperties)
         {
             if (myFilter != null)
             {
                 if (myFilter(aProperty.Key, aProperty.Value))
                 {
                     yield return(new Tuple <long, IComparable>(aProperty.Key, aProperty.Value));
                 }
             }
             else
             {
                 yield return(new Tuple <long, IComparable>(aProperty.Key, aProperty.Value));
             }
         }
     }
     yield break;
 }
Exemplo n.º 4
0
 public IEnumerable <PropertyContainer> GetAllProperties(
     PropertyHyperGraphFilter.GraphElementStructuredPropertyFilter myFilter)
 {
     return(_Vertex.GetAllProperties(myFilter));
 }
Exemplo n.º 5
0
 public IEnumerable <PropertyContainer> GetAllProperties(PropertyHyperGraphFilter.GraphElementStructuredPropertyFilter myFilter = null)
 {
     return(GetAllPropertiesProtected(myFilter));
 }
Exemplo n.º 6
0
 public IEnumerable <Tuple <long, IComparable> > GetAllProperties(PropertyHyperGraphFilter.GraphElementStructuredPropertyFilter myFilter = null)
 {
     return(_ServiceToken.EdgeService.GetAllPropertiesByEdgeInstance(_ServiceToken.SecurityToken, _ServiceToken.TransactionToken, ConvertHelper.ToServiceEdgeInstance(this))
            .Select(x => new Tuple <long, IComparable>(x.Item1, (IComparable)x.Item2)));
 }
Exemplo n.º 7
0
 public IEnumerable <Tuple <long, IComparable> > GetAllProperties(PropertyHyperGraphFilter.GraphElementStructuredPropertyFilter myFilter = null)
 {
     return(GetAllPropertiesProtected(myFilter));
 }
Exemplo n.º 8
0
 public IEnumerable <Tuple <long, IComparable> > GetAllProperties(
     PropertyHyperGraphFilter.GraphElementStructuredPropertyFilter myFilter)
 {
     return(_Vertex.GetAllProperties(myFilter));
 }