Exemple #1
0
	public void param(
		iCalObject o
	) //throws RecognitionException, TokenStreamException
{
		
		Parameter p; string n; string v;
		
		n=param_name();
		p = new Parameter(o, n);
		match(EQUAL);
		v=param_value();
		p.Values.Add(v);
		{    // ( ... )*
			for (;;)
			{
				if ((LA(1)==COMMA))
				{
					match(COMMA);
					v=param_value();
					p.Values.Add(v);
				}
				else
				{
					goto _loop54_breakloop;
				}
				
			}
_loop54_breakloop:			;
		}    // ( ... )*
	}
Exemple #2
0
	public void xparam(
		iCalObject o
	) //throws RecognitionException, TokenStreamException
{
		
		IToken  n = null;
		Parameter p; string v;
		
		n = LT(1);
		match(X_NAME);
		p = new Parameter(o, n.getText());
		match(EQUAL);
		v=param_value();
		p.Values.Add(v);
		{    // ( ... )*
			for (;;)
			{
				if ((LA(1)==COMMA))
				{
					match(COMMA);
					v=param_value();
					p.Values.Add(v);
				}
				else
				{
					goto _loop84_breakloop;
				}
				
			}
_loop84_breakloop:			;
		}    // ( ... )*
	}
Exemple #3
0
 /// <summary>
 /// Adds a parameter to the iCalendar object.
 /// </summary>
 virtual public void AddParameter(Parameter p)
 {
     Parameters.Add(p);
 }
Exemple #4
0
 /// <summary>
 /// Adds a parameter to the iCalendar object.
 /// </summary>
 virtual public void AddParameter(string name, string value)
 {
     Parameter p = new Parameter(name, value);
     AddParameter(p);
 }
Exemple #5
0
	public void param(
		iCalObject o
	) //throws RecognitionException, TokenStreamException
{
		
		Parameter p; string n; string v;
		
		try {      // for error handling
			n=param_name();
			p = new Parameter(o, n);
			match(EQUAL);
			v=param_value();
			p.Values.Add(v);
			{    // ( ... )*
				for (;;)
				{
					if ((LA(1)==COMMA))
					{
						match(COMMA);
						v=param_value();
						p.Values.Add(v);
					}
					else
					{
						goto _loop45_breakloop;
					}
					
				}
_loop45_breakloop:				;
			}    // ( ... )*
		}
		catch (RecognitionException ex)
		{
			reportError(ex);
			recover(ex,tokenSet_6_);
		}
	}
 public ParameterSerializer(Parameter parameter)
 {
     this.m_Parameter = parameter;
 }
Exemple #7
0
 /// <summary>
 /// Adds a parameter to the iCalendar object.
 /// </summary>
 virtual public void AddParameter(Parameter p)
 {
     Parameters[p.Name] = p;
 }