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

org.xmlresolver.catalog.entry.EntryGroup Maven / Gradle / Ivy

There is a newer version: 6.0.11
Show newest version
package org.xmlresolver.catalog.entry;

import org.xmlresolver.ResolverConfiguration;

import java.net.URI;

/**
 * A group catalog entry.
 * 

A group is a wrapper around other entries. It's largely transparent, but allows the * "prefer public" default to be changed.

*/ public class EntryGroup extends Entry { /** Are public identifiers preferred? */ public final boolean preferPublic; /** * EntryGroup constructor. * @param config The configuration. * @param baseURI The base URI. * @param id The (XML) ID of this element in the XML catalog. * @param prefer Prefer public identifiers? */ public EntryGroup(ResolverConfiguration config, URI baseURI, String id, boolean prefer) { super(config, baseURI, id); this.preferPublic = prefer; } @Override public Type getType() { return Type.GROUP; } @Override public String toString() { return "group prefer=" + (preferPublic ? "public" : "system"); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy