Ejemplo n.º 1
0
        public virtual string EvidenceMessage(TokenNameLookup tokenNameLookup, SchemaDescriptor schema)
        {
            Debug.Assert(Schema.PropertyIds.length == _propertyValues.size());

            string labelName = tokenNameLookup.LabelGetName(Schema.keyId());

            if (_addedNodeId == NO_SUCH_NODE)
            {
                return(format("Node(%d) already exists with label `%s` and %s", _existingNodeId, labelName, PropertyString(tokenNameLookup, Schema.PropertyIds)));
            }
            else
            {
                return(format("Both Node(%d) and Node(%d) have the label `%s` and %s", _existingNodeId, _addedNodeId, labelName, PropertyString(tokenNameLookup, Schema.PropertyIds)));
            }
        }