}
// user-data-constraint
if (object instanceof UserDataConstraintMetaData)
{
UserDataConstraintMetaData md = (UserDataConstraintMetaData)object;
if ("transport-guarantee".equals(localName))
{
md.setTransportGuarantee(TransportGuarantee.valueOf(value));
}
}
// portlet-collection in security-constraint
if (object instanceof PortletCollectionMetaData)
{
PortletCollectionMetaData md = (PortletCollectionMetaData)object;
if ("portlet-name".equals(localName))
{
md.addPortletname(value);
}
}
// filter
if (object instanceof FilterMetaData && PORTLET_JSR_286_NS.equals(nsURI))
{
FilterMetaData md = (FilterMetaData)object;
if ("filter-class".equals(localName))
{
md.setFilterClass(value);
}
else if ("filter-name".equals(localName))
{
md.setFilterName(value);
}
else if ("lifecycle".equals(localName))
{
int end = value.length() - "_PHASE".length();
String lifeCycle = value.substring(0, end > 0 ? end : 0);
try
{
md.addLifecycle(LifeCyclePhase.valueOf(lifeCycle));
}
catch (IllegalArgumentException e)
{
throw new IllegalArgumentException("Invalid value for lifecycle. Valid values are [RENDER_PHASE, RESOURCE_PHASE, ACTION_PHASE, EVENT_PHASE]");
}
}
}
// filter-mapping
if (object instanceof FilterMappingMetaData && PORTLET_JSR_286_NS.equals(nsURI))
{
FilterMappingMetaData md = (FilterMappingMetaData)object;
if ("filter-name".equals(localName))
{
md.setName(value);
}
if ("portlet-name".equals(localName))
{
md.addPortletName(value);
}
}
// event-defintion
if (object instanceof EventDefinitionMetaData && PORTLET_JSR_286_NS.equals(nsURI))
{
EventDefinitionMetaData md = (EventDefinitionMetaData)object;
if ("name".equals(localName))
{
md.setName(value);
}
else if ("qname".equals(localName))
{
md.setQname(nav.resolveQName(value));
}
else if ("value-type".equals(localName))
{
md.setValueType(value);
}
else if ("alias".equals(localName))
{
md.addAlias(nav.resolveQName(value));
}
}
// public-render-parameter
if (object instanceof PublicRenderParameterMetaData && PORTLET_JSR_286_NS.equals(nsURI))
{
PublicRenderParameterMetaData md = (PublicRenderParameterMetaData)object;
if ("identifier".equals(localName))
{
md.setIdentifier(value);
}
else if ("name".equals(localName))
{
md.setName(value);
}
else if ("qname".equals(localName))
{
md.setQname(nav.resolveQName(value));
}
else if ("alias".equals(localName))
{
md.addAlias(nav.resolveQName(value));
}
}
// container-runtime-option
if (object instanceof ContainerRuntimeMetaData && PORTLET_JSR_286_NS.equals(nsURI))
{
ContainerRuntimeMetaData md = (ContainerRuntimeMetaData)object;
if ("name".equals(localName))
{
md.setName(value);
}
else if ("value".equals(localName))
{
md.addValue(value);
}
}
// listener
if (object instanceof ListenerMetaData && PORTLET_JSR_286_NS.equals(nsURI))
{
ListenerMetaData md = (ListenerMetaData)object;
if ("listener-class".equals(localName))
{
md.setListenerClass(value);
}
}
}