public void doValueProperty(Token t, Token iprop) { //accumulator.Append( " rdf:parseType='Resource'>\n" ); StackElem elem = Pop(); elem.guid = NewGuid(); accumulator.Append("{{[" + context + "] [" + NS(elem.id.TokenText) + "] [" + Peek().guid + "] [" + elem.guid + "]}}\n"); if (iprop != null) { //accumulator.Append( "<" + Token.CamelCase( iprop.TokenText.ToLower()) + ">" + t.TokenText + "</" + Token.CamelCase( iprop.TokenText.ToLower()) + ">\n" ); string tag = NS(Token.CamelCase(iprop.TokenText.ToLower())); string lprop = Token.CamelCase(iprop.TokenText.ToLower()); string lobj; if (lprop == "date") { lobj = Token.ParseDate(t.TokenText); } else { lobj = Token.CamelCase(t.TokenText.ToLower()); } accumulator.Append("{{[" + context + "] [" + tag + "] [" + elem.guid + "] '" + lobj + "'}}\n"); } else { //accumulator.Append( "<dateTime>" + Token.ParseDate( t.TokenText ) + "</dateTime>\n" ); accumulator.Append("{{[" + context + "] [ical:dateTime] [" + elem.guid + "] '" + Token.ParseDateTime(t.TokenText) + "'}}\n"); } Push(elem); Inc(); }
public void doValueProperty(Token t, Token iprop) { StackElem elem = Pop(); elem.guid = NewGuid(); accumulator.Add(new Triple(NS(elem.id.TokenText), Peek().guid, elem.guid, true)); if (iprop != null) { string tag = NS(Token.CamelCase(iprop.TokenText.ToLower())); string lprop = Token.CamelCase(iprop.TokenText.ToLower()); string lobj; if (lprop == "date") { lobj = Token.ParseDate(t.TokenText); } else { lobj = Token.CamelCase(t.TokenText.ToLower()); } accumulator.Add(new Triple(tag, elem.guid, lobj, false)); } else { accumulator.Add(new Triple(NS("dateTime"), elem.guid, Token.ParseDateTime(t.TokenText), false)); } Push(elem); }
public void doValueProperty(Token t, Token iprop) { accumulator.Write(" rdf:parseType='Resource'>\n"); if (iprop != null) { string lprop = Token.CamelCase(iprop.TokenText.ToLower()); string lobj; if (lprop == "date") { lobj = Token.ParseDate(t.TokenText); } else { lobj = Token.CamelCase(t.TokenText.ToLower()); } accumulator.Write("<" + lprop + ">" + lobj + "</" + lprop + ">\n"); } else { accumulator.Write("<dateTime>" + Token.ParseDateTime(t.TokenText) + "</dateTime>\n"); } }