{
valuePart = part;
valueObj = obj;
}
VCardMessagePartMapping valuePartMapping = (VCardMessagePartMapping)valuePart.getMapping();
if (valueObj == null && valuePartMapping.getDefault() == null)
{
if (valuePart.isRequired())
{
throw new IntegrationException("err.integration.minPartCount", new Object[]{valuePart.getFullPath()});
}
return;
}
m_writer.write((bParameters) ? mapping.getFullName() : valuePartMapping.getFullName());
int nChildCount = (bParameters) ? parentPart.getPartCount() : 0;
for (int i = 0; i < nChildCount; i++)
{
MessagePart childPart = (MessagePart)parentPart.getPart(i);
VCardMessagePartMapping childMapping = (VCardMessagePartMapping)childPart.getMapping();
if (childMapping.getType() == VCardMessagePartMapping.TYPE_PARAMETER)
{
Object parameterObj = ((TransferObject)obj).findValue(childPart.getName());
if (parameterObj != null || childMapping.getDefault() != null)
{
m_writer.write(';');
m_writer.write(childMapping.getName());
m_writer.write('=');
writeValue((PrimitiveMessagePart)childPart, childMapping, parameterObj);
}
else
{