Beispiel #1
0
        public static System.String unusedAttWarning(Element e, System.Collections.ArrayList usedAtts)
        {
            System.String warning           = "Warning: ";
            System.Collections.ArrayList ua = getUnusedAttributes(e, usedAtts);
            warning += (ua.Count + " Unrecognized attributes found in Element [" + e.getName() + "] and will be ignored: ");
            warning += "[";
            for (int i = 0; i < ua.Count; i++)
            {
                //UPGRADE_TODO: The equivalent in .NET for method 'java.lang.Object.toString' may return a different value. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1043'"
                warning += ua[i];
                if (i != ua.Count - 1)
                {
                    warning += ",";
                }
            }
            warning += "] ";
            warning += ("Location:\n" + XFormParser.getVagueLocation(e));

            return(warning);
        }
Beispiel #2
0
 public virtual IAnswerData parseData(System.String textVal, int dataType, TreeReference ref_Renamed, FormDef f)
 {
     return(XFormAnswerDataParser.getAnswerData(textVal, dataType, XFormParser.ghettoGetQuestionDef(dataType, f, ref_Renamed)));
 }
Beispiel #3
0
 public virtual FormInstance parseRestore(sbyte[] data, System.Type restorableType)
 {
     return(XFormParser.restoreDataModel(data, restorableType));
 }