Modifier and Type | Class and Description |
---|---|
public static enum | GroupEntry.PreferType
PreferType represents possible values of the prefer property |
Modifier and Type | Field and Description |
---|---|
pack-priv static final int | |
pack-priv static final int | |
pack-priv static final int | |
pack-priv CatalogImpl | |
pack-priv List | |
pack-priv Map | |
pack-priv List | |
pack-priv CatalogFeatures | |
pack-priv boolean | |
pack-priv boolean | |
pack-priv Map | |
pack-priv int | |
pack-priv int | |
pack-priv CatalogImpl | |
pack-priv String | |
pack-priv boolean | |
pack-priv String | |
pack-priv boolean |
Access | Constructor and Description |
---|---|
public | GroupEntry(BaseEntry.
the type of the entry type,the parent Catalog parent)Constructs a GroupEntry |
public | GroupEntry(String
The baseURI attribute base, String... The attributes attributes)Constructs a group entry. |
public | GroupEntry(CatalogImpl
the catalog this GroupEntry belongs to catalog, String the baseURI attribute base, String... the attributes attributes)Constructs a group entry. |
Modifier and Type | Method and Description |
---|---|
public void | |
pack-priv CatalogImpl | Returns: a Catalog object previously loaded, or null if none in the saved listThe systemId of a catalog catalogId)Returns a previously loaded Catalog object if found. |
pack-priv boolean | Returns: true if is circular, false otherwisethe parent of the catalog to be loaded parent, String the system identifier of the catalog to be loaded systemId)Checks whether the catalog is circularly referenced |
public boolean | Returns: true if the prefer attribute is set to system, false if not.Queries the prefer attribute |
pack-priv Catalog | loadDelegateCatalog(CatalogImpl
the parent catalog of the delegate catalog parent, URI the URI to the catalog catalogURI)Loads a delegate catalog by the catalogId specified. |
pack-priv void | loadDelegateCatalogs(CatalogImpl
the parent catalog of the delegate catalogs parent)Loads all delegate catalogs. |
private String | Returns: the URI string if a mapping is found, or null otherwise.the type of the Catalog entry type,the system or public id to be matched id)Matches delegatePublic or delegateSystem against the specified id |
public String | Returns: a URI string if a mapping is found, or null otherwise.The public identifier of the external entity being
referenced. publicId)Attempt to find a matching entry in the catalog by publicId. |
public String | Returns: a URI string if a mapping is found, or null otherwise.The system identifier of the external entity being
referenced. systemId)Attempt to find a matching entry in the catalog by systemId. |
public String | |
public void | |
private void | |
pack-priv String | Returns: the resolved systemId if a match is found, null otherwiseThe public identifier of the external entity being
referenced. publicId, String The system identifier of the external entity being
referenced. systemId)Attempt to find a matching entry in the catalog by publicId or systemId. |
pack-priv void | setCatalog(CatalogImpl
the catalog this GroupEntry belongs to catalog)Sets the catalog for this GroupEntry. |
public final void | |
pack-priv final boolean | Returns: true if the catalogId passed verification, false otherwisethe parent of the catalog to be loaded parent, URI the URI to the catalog catalogURI)Verifies that the catalog file represented by the catalogId exists. |
ATTRIBUTE_DEFFER | back to summary |
---|---|
pack-priv static final int ATTRIBUTE_DEFFER |
ATTRIBUTE_PREFER | back to summary |
---|---|
pack-priv static final int ATTRIBUTE_PREFER |
ATTRIBUTE_RESOLUTION | back to summary |
---|---|
pack-priv static final int ATTRIBUTE_RESOLUTION |
catalog | back to summary |
---|---|
pack-priv CatalogImpl catalog |
catalogsSearched | back to summary |
---|---|
pack-priv List<String> catalogsSearched |
delegateCatalogs | back to summary |
---|---|
pack-priv Map<String, CatalogImpl> delegateCatalogs |
entries | back to summary |
---|---|
pack-priv List<BaseEntry> entries |
features | back to summary |
---|---|
pack-priv CatalogFeatures features |
isInstantMatch | back to summary |
---|---|
pack-priv boolean isInstantMatch |
isPreferPublic | back to summary |
---|---|
pack-priv boolean isPreferPublic |
loadedCatalogs | back to summary |
---|---|
pack-priv Map<String, CatalogImpl> loadedCatalogs |
longestRewriteMatch | back to summary |
---|---|
pack-priv int longestRewriteMatch |
longestSuffixMatch | back to summary |
---|---|
pack-priv int longestSuffixMatch |
parent | back to summary |
---|---|
pack-priv CatalogImpl parent |
rewriteMatch | back to summary |
---|---|
pack-priv String rewriteMatch |
shouldKeepState | back to summary |
---|---|
pack-priv boolean shouldKeepState |
suffixMatch | back to summary |
---|---|
pack-priv String suffixMatch |
systemEntrySearched | back to summary |
---|---|
pack-priv boolean systemEntrySearched |
GroupEntry | back to summary |
---|---|
public GroupEntry(BaseEntry. Constructs a GroupEntry
|
GroupEntry | back to summary |
---|---|
public GroupEntry(String base, String... attributes) Constructs a group entry. |
GroupEntry | back to summary |
---|---|
public GroupEntry(CatalogImpl catalog, String base, String... attributes) Constructs a group entry.
|
addEntry | back to summary |
---|---|
public void addEntry(BaseEntry entry) Adds an entry.
|
getLoadedCatalog | back to summary |
---|---|
pack-priv CatalogImpl getLoadedCatalog(String catalogId) Returns a previously loaded Catalog object if found.
|
isCircular | back to summary |
---|---|
pack-priv boolean isCircular(CatalogImpl parent, String systemId) Checks whether the catalog is circularly referenced
|
isPreferPublic | back to summary |
---|---|
public boolean isPreferPublic() Queries the prefer attribute
|
loadDelegateCatalog | back to summary |
---|---|
pack-priv Catalog loadDelegateCatalog(CatalogImpl parent, URI catalogURI) Loads a delegate catalog by the catalogId specified.
|
loadDelegateCatalogs | back to summary |
---|---|
pack-priv void loadDelegateCatalogs(CatalogImpl parent) Loads all delegate catalogs.
|
matchDelegate | back to summary |
---|---|
private String matchDelegate(BaseEntry. Matches delegatePublic or delegateSystem against the specified id
|
matchPublic | back to summary |
---|---|
public String matchPublic(String publicId) Attempt to find a matching entry in the catalog by publicId. The method searches through the public-type entries, including public, delegatePublic, and group entries in the current catalog in order to find a match. |
matchSystem | back to summary |
---|---|
public String matchSystem(String systemId) Attempt to find a matching entry in the catalog by systemId. The method searches through the system-type entries, including system, rewriteSystem, systemSuffix, delegateSystem, and group entries in the current catalog in order to find a match. |
matchURI | back to summary |
---|---|
public String matchURI(String uri) Attempt to find a matching entry in the catalog by the uri element. The method searches through the uri-type entries, including uri, rewriteURI, uriSuffix, delegateURI and group entries in the current catalog in order to find a match. |
reset | back to summary |
---|---|
public void reset() Resets the group entry to its initial state. |
resetOnStart | back to summary |
---|---|
private void resetOnStart() Resets the state of the Catalog instance, allowing it to be reused. |
resolve | back to summary |
---|---|
pack-priv String resolve(String publicId, String systemId) Attempt to find a matching entry in the catalog by publicId or systemId. The resolution follows the following rules determined by the prefer setting: prefer "system": attempts to resolve with a system entry; attempts to resolve with a public entry when only publicId is specified. prefer "public": attempts to resolve with a system entry; attempts to resolve with a public entry if no matching system entry is found. If no match is found, continue searching uri entries. |
setCatalog | back to summary |
---|---|
pack-priv void setCatalog(CatalogImpl catalog) Sets the catalog for this GroupEntry.
|
setPrefer | back to summary |
---|---|
public final void setPrefer(String value) Sets the prefer property. If the value is null or empty, or any String other than the defined, it will be assumed as the default value.
|
verifyCatalogFile | back to summary |
---|---|
pack-priv final boolean verifyCatalogFile(CatalogImpl parent, URI catalogURI) Verifies that the catalog file represented by the catalogId exists. If it doesn't, returns false to ignore it as specified in the Catalog specification, section 8. Resource Failures. Verifies that the catalog represented by the catalogId has not been searched or is not circularly referenced.
|
Modifier and Type | Field and Description |
---|---|
pack-priv final String | |
public static final GroupEntry. | |
public static final GroupEntry. |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public boolean | |
public static GroupEntry. | |
public static GroupEntry. |
literal | back to summary |
---|---|
pack-priv final String literal |
PUBLIC | back to summary |
---|---|
public static final GroupEntry. |
SYSTEM | back to summary |
---|---|
public static final GroupEntry. |
PreferType | back to summary |
---|---|
private PreferType(String literal) |
prefer | back to summary |
---|---|
public boolean prefer(String prefer) |
valueOf | back to summary |
---|---|
public static GroupEntry. |
values | back to summary |
---|---|
public static GroupEntry. |