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

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

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

import com.enonic.xp.page.PageDescriptor;
import com.enonic.xp.resource.DynamicSchemaResult;
import com.enonic.xp.script.serializer.MapGenerator;

public final class PageDescriptorMapper
    extends DescriptorMapper
{
    public PageDescriptorMapper( 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 "PAGE";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy