/// <summary> /// Creates a new ResultSequence consisting of the extractable NMTOKEN within /// the supplied ResultSequence /// </summary> /// <param name="arg"> /// The ResultSequence from which to extract the NMTOKEN </param> /// <returns> New ResultSequence consisting of the NMTOKEN supplied </returns> /// <exception cref="DynamicError"> </exception> //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); } AnyAtomicType aat = (AnyAtomicType)arg.first(); string strValue = aat.StringValue; if (!XMLChar.isValidNmtoken(strValue)) { // invalid input DynamicError.throw_type_error(); } return(new XSNMTOKEN(strValue)); }