Package com.volantis.mcs.dissection.annotation

Examples of com.volantis.mcs.dissection.annotation.DissectableArea


                                 expectedDocumentStats.getFixedContentUsages(),
                                 dissected.getFixedContentUsages());

        // Check that the dissectable areas are correct.
        for (int i = 0; i < dissectableAreaCount; i += 1) {
            DissectableArea area = dissected.getDissectableArea(i);
            DissectableAreaStats expectedDAStats
                = expectedDocumentStats.getDissectableAreaStats(i);
            checkDissectableArea(failures, details, context, area,
                                 expectedDAStats);
        }
View Full Code Here


        // Select the shards from each area.
        SelectedShards selectedShards = getSelectedShards(dissectionContext, document,
                                                          requestedShards,
                                                          availableShards);

        DissectableArea area = document.getDissectableArea(1);

        int shardIndex = requestedShards.getShard(area.getIndex());

        // Retrieve the appropriate shard from the area. If the shard index
        // is invalid for some reason then we may not get back exactly the
        // one that we asked for but we will get one back.
        Shard shard
            = area.retrieveShard(dissectionContext, shardIndex,
                                 (AvailableShardsImpl) availableShards);
        if (shard == null) {
            throw new DissectionException(
                        exceptionLocalizer.format("shard-not-found"));
        }
View Full Code Here

        // is done by iterating over the dissectable areas looking to see if a
        // shard has been specified for them in the fragmentation state. If no
        // shard has been explicitly set then the first shard is used.
        int count = selectedShards.getCount();
        for (int i = 0; i < count; i += 1) {
            DissectableArea area = document.getDissectableArea(i);

            int shardIndex = requestedShards.getShard(area.getIndex());

            // Retrieve the appropriate shard from the area. If the shard index
            // is invalid for some reason then we may not get back exactly the
            // one that we asked for but we will get one back.
            Shard shard
                = area.retrieveShard(dissectionContext, shardIndex,
                                     (AvailableShardsImpl) availableShards);
            if (shard == null) {
                throw new DissectionException(
                        exceptionLocalizer.format("shard-not-found"));
            }
View Full Code Here

    public void initialise(ShardLinkGroup group,
                           SelectedShards selectedShards) {

        this.count = group.getShardLinkCount();

        DissectableArea area = group.getDissectableArea();
        Shard shard = selectedShards.getShard(area);
        // Get the shard link details from the group.
        int i;
        for (i = 0; i < count; i += 1) {
            ShardLink link = group.getShardLink(i);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.dissection.annotation.DissectableArea

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.