public override ResultSequence nilled() { if (_value is PSVIElementNSImpl) { PSVIElementNSImpl psviElement = (PSVIElementNSImpl)_value; return(XSBoolean.valueOf(psviElement.Nil)); } else { return(XSBoolean.FALSE); } }
/// <summary> /// Creates a new result sequence consisting of the retrievable boolean value /// in the supplied result sequence /// </summary> /// <param name="arg"> /// The result sequence from which to extract the boolean value. </param> /// <exception cref="DynamicError"> </exception> /// <returns> A new result sequence consisting of the boolean value supplied. </returns> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public org.eclipse.wst.xml.xpath2.api.ResultSequence constructor(org.eclipse.wst.xml.xpath2.api.ResultSequence arg) throws org.eclipse.wst.xml.xpath2.processor.DynamicError public override ResultSequence constructor(ResultSequence arg) { if (arg.empty()) { return(ResultBuffer.EMPTY); } Item anyType = arg.first(); if (anyType is XSDuration || anyType is CalendarType || anyType is XSBase64Binary || anyType is XSHexBinary || anyType is XSAnyURI) { throw DynamicError.invalidType(); } string str_value = anyType.StringValue; if (!(isCastable(anyType, str_value))) { throw DynamicError.cant_cast(null); } return(XSBoolean.valueOf(!isFalse(str_value))); }