com.enonic.xp.lib.schema.mapper.XDataMapper Maven / Gradle / Ivy
package com.enonic.xp.lib.schema.mapper;
import com.enonic.xp.resource.DynamicSchemaResult;
import com.enonic.xp.schema.xdata.XData;
import com.enonic.xp.script.serializer.MapGenerator;
public final class XDataMapper
extends SchemaMapper
{
public XDataMapper( final DynamicSchemaResult schema )
{
super( schema );
}
public void serialize( final MapGenerator gen )
{
super.serialize( gen );
DynamicSchemaSerializer.serializeForm( gen, descriptor.getForm() );
}
@Override
protected String getType()
{
return "XDATA";
}
}