Пример #1
0
 /// <summary>
 /// Returns all unstructured properties of this graph element
 /// </summary>
 /// <param name="myFilter">An optional filter function</param>
 /// <returns>An enumerable of propertyName/PropertyValue</returns>
 protected IEnumerable <UnstructuredPropertyContainer> GetAllUnstructuredPropertiesProtected(
     PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter = null)
 {
     if (_unstructuredProperties != null)
     {
         foreach (var aUnstructuredProperty in _unstructuredProperties)
         {
             if (myFilter != null)
             {
                 if (myFilter(aUnstructuredProperty.Key, aUnstructuredProperty.Value))
                 {
                     yield return
                         (new UnstructuredPropertyContainer {
                         PropertyName = aUnstructuredProperty.Key, Property = aUnstructuredProperty.Value
                     });
                 }
             }
             else
             {
                 yield return(new UnstructuredPropertyContainer {
                     PropertyName = aUnstructuredProperty.Key, Property = aUnstructuredProperty.Value
                 });
             }
         }
     }
     yield break;
 }
Пример #2
0
 /// <summary>
 /// Returns all unstructured properties of this graph element
 /// </summary>
 /// <param name="myFilter">An optional filter function</param>
 /// <returns>An enumerable of propertyName/PropertyValue</returns>
 protected IEnumerable <Tuple <string, object> > GetAllUnstructuredPropertiesProtected(
     PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter = null)
 {
     if (_unstructuredProperties != null)
     {
         foreach (var aUnstructuredProperty in _unstructuredProperties)
         {
             if (myFilter != null)
             {
                 if (myFilter(aUnstructuredProperty.Key, aUnstructuredProperty.Value))
                 {
                     yield return
                         (new Tuple <String, object>(aUnstructuredProperty.Key, aUnstructuredProperty.Value));
                 }
             }
             else
             {
                 yield return(new Tuple <String, object>(aUnstructuredProperty.Key, aUnstructuredProperty.Value));
             }
         }
     }
     yield break;
 }
Пример #3
0
 public IEnumerable <UnstructuredPropertyContainer> GetAllUnstructuredProperties(
     PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter)
 {
     return(_Vertex.GetAllUnstructuredProperties(myFilter));
 }
Пример #4
0
 public IEnumerable <UnstructuredPropertyContainer> GetAllUnstructuredProperties(PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter = null)
 {
     return(_ServiceToken.EdgeService.GetAllUnstructuredPropertiesByEdgeInstance(_ServiceToken.SecurityToken, _ServiceToken.TransactionToken, ConvertHelper.ToServiceEdgeInstance(this)).Select(_ => new UnstructuredPropertyContainer {
         PropertyName = _.PropertyName, Property = _.Property
     }));
 }
Пример #5
0
 public IEnumerable <UnstructuredPropertyContainer> GetAllUnstructuredProperties(
     PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter = null)
 {
     return(GetAllUnstructuredPropertiesProtected(myFilter));
 }
Пример #6
0
 public IEnumerable <Tuple <string, object> > GetAllUnstructuredProperties(PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter = null)
 {
     return(_ServiceToken.EdgeService.GetAllUnstructuredPropertiesByEdgeInstance(_ServiceToken.SecurityToken, _ServiceToken.TransactionToken, ConvertHelper.ToServiceEdgeInstance(this)));
 }
Пример #7
0
 public IEnumerable <UnstructuredPropertyContainer> GetAllUnstructuredProperties(PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter = null)
 {
     return(_ServiceToken.VertexService.GetAllUnstructuredPropertiesByVertexInstance(_ServiceToken.SecurityToken, _ServiceToken.TransactionToken, new ServiceVertexInstance(this)).Select(_ => new UnstructuredPropertyContainer {
         PropertyName = _.PropertyName, Property = _.Property
     }).ToList());
 }
Пример #8
0
 public IEnumerable <Tuple <string, object> > GetAllUnstructuredProperties(PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter = null)
 {
     return(_ServiceToken.VertexService.GetAllUnstructuredPropertiesByVertexInstance(_ServiceToken.SecurityToken, _ServiceToken.TransactionToken, new ServiceVertexInstance(this)));
 }
Пример #9
0
 public IEnumerable <Tuple <string, object> > GetAllUnstructuredProperties(
     PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter = null)
 {
     return(GetAllUnstructuredPropertiesProtected(myFilter));
 }
Пример #10
0
 public IEnumerable <Tuple <string, object> > GetAllUnstructuredProperties(
     PropertyHyperGraphFilter.GraphElementUnStructuredPropertyFilter myFilter)
 {
     return(_Vertex.GetAllUnstructuredProperties(myFilter));
 }