io.thestencil.client.spi.staticontent.visitors.SiteVisitorDefault Maven / Gradle / Ivy
package io.thestencil.client.spi.staticontent.visitors;
/*-
* #%L
* stencil-static-content
* %%
* Copyright (C) 2021 Copyright 2021 ReSys OÜ
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
import io.thestencil.client.api.MigrationBuilder.LocalizedSite;
import io.thestencil.client.api.MigrationBuilder.Topic;
import io.thestencil.client.api.MigrationBuilder.TopicBlob;
import io.thestencil.client.api.MigrationBuilder.TopicHeading;
import io.thestencil.client.api.MigrationBuilder.TopicLink;
import io.thestencil.client.spi.beans.LocalizedSiteBean;
import io.thestencil.client.spi.beans.TopicBean;
import io.thestencil.client.spi.beans.TopicBlobBean;
import io.thestencil.client.spi.beans.TopicHeadingBean;
import io.thestencil.client.spi.beans.TopicLinkBean;
import io.thestencil.client.spi.staticontent.support.ParserAssert;
import io.thestencil.client.spi.staticontent.support.Sha2;
public class SiteVisitorDefault implements SiteVisitor {
private final List messages = new ArrayList<>();
private final Map> localeTopicData = new HashMap<>();
private final Map> pathLinkData = new HashMap<>();
private final Map pathTopicNamesData = new HashMap<>();
private final Map images = new HashMap<>();
private final Map blobs = new HashMap<>();
private final Map links = new HashMap<>();
private final Function
© 2015 - 2025 Weber Informatics LLC | Privacy Policy