I have an method in which I need to pass parameters value some like this in the publish methods.
facebookclient. publish("me/events", FacebookType.class,Parameter.with("name", "Party"));
Instead of passing it as three parameters, I am trying to pass it as object storing these three parameters in the object record.
eg:
facebookclient.publish(record);
so that in publish method , I can get this
void publish(Record record)
{
String event= record.getEvent();
}
I am trying to create an xsd for these parameters. Kindly guide me how to do it. for me/events I can create an element in the xsd as
<element name="events" type="string" />
and refer it in an object
<element name="Record">
<complexType>
<sequence>
<element ref="fb:events" />
// how to specify for FacebookType.class,Parameter.with("name", "Party"))?
</sequence>
</complexType>
</element>
Kindly guide me, how to specify the element FacebookType.class,Parameter.with("name", "Party")) in xsd?