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

com.enonic.xp.lib.schema.mapper.LayoutDescriptorMapper Maven / Gradle / Ivy

package com.enonic.xp.lib.schema.mapper;

import com.enonic.xp.region.LayoutDescriptor;
import com.enonic.xp.resource.DynamicSchemaResult;
import com.enonic.xp.script.serializer.MapGenerator;

public final class LayoutDescriptorMapper
    extends DescriptorMapper
{
    public LayoutDescriptorMapper( final DynamicSchemaResult schema )
    {
        super( schema );
    }

    @Override
    public void serialize( final MapGenerator gen )
    {
        super.serialize( gen );
        DynamicSchemaSerializer.serializeRegions( gen, descriptor.getRegions() );
    }

    @Override
    protected String getType()
    {
        return "LAYOUT";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy