/// <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; }
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 })); }
/// <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; }
public IEnumerable <PropertyContainer> GetAllProperties( PropertyHyperGraphFilter.GraphElementStructuredPropertyFilter myFilter) { return(_Vertex.GetAllProperties(myFilter)); }
public IEnumerable <PropertyContainer> GetAllProperties(PropertyHyperGraphFilter.GraphElementStructuredPropertyFilter myFilter = null) { return(GetAllPropertiesProtected(myFilter)); }
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))); }
public IEnumerable <Tuple <long, IComparable> > GetAllProperties(PropertyHyperGraphFilter.GraphElementStructuredPropertyFilter myFilter = null) { return(GetAllPropertiesProtected(myFilter)); }
public IEnumerable <Tuple <long, IComparable> > GetAllProperties( PropertyHyperGraphFilter.GraphElementStructuredPropertyFilter myFilter) { return(_Vertex.GetAllProperties(myFilter)); }