All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy