C# Class HandCoded.Xml.Resolver.GroupEntry

The GroupEntry class provides a container for other catalog components.
Inheritance: RelativeEntry
Show file Open project: formicary/fpml-toolkit-csharp Class Usage Examples

Protected Properties

Property Type Description
rules List

Public Methods

Method Description
AddDelegatePublic ( String startString, String catalog ) : DelegatePublicEntry

Adds a rule to the catalog which will direct the resolution for any public identifier that starts with the given prefix to a sub-catalog file.

AddDelegatePublic ( String startString, String catalog, String xmlbase ) : DelegatePublicEntry

Adds a rule to the catalog which will direct the resolution for any public identifier that starts with the given prefix to a sub-catalog file.

AddDelegateSystem ( String startString, String catalog ) : DelegateSystemEntry

Adds a rule to the catalog which will direct the resolution for any system identifier that starts with the given prefix to a sub-catalog file.

AddDelegateSystem ( String startString, String catalog, String xmlbase ) : DelegateSystemEntry

Adds a rule to the catalog which will direct the resolution for any system identifier that starts with the given prefix to a sub-catalog file.

AddDelegateUri ( String startString, String catalog ) : DelegateUriEntry

Adds a rule with delegates the processing for matched URIs to another catalog.

AddDelegateUri ( String startString, String catalog, String xmlbase ) : DelegateUriEntry

Adds a rule with delegates the processing for matched URIs to another catalog.

AddNextCatalog ( String catalog ) : NextCatalogEntry

Adds a rule which will cause resolution to chain to another catalog if no match can be found in this one.

AddNextCatalog ( String catalog, String xmlbase ) : NextCatalogEntry

Adds a rule which will cause resolution to chain to another catalog if no match can be found in this one.

AddPublic ( String publicId, String uri ) : PublicEntry

Adds a rule to the catalog directing the given public identifier to the indicated URI.

AddPublic ( String publicId, String uri, String xmlbase ) : PublicEntry

Adds a rule to the catalog directing the given public identifier to the indicated URI.

AddRewriteSystem ( String startString, String rewritePrefix ) : RewriteSystemEntry

Adds a rule to the catalog which will cause a matching system identifier to its starting prefix replaced.

AddRewriteUri ( String startString, String rewritePrefix ) : RewriteUriEntry

Adds a rule to the catalog which perform URI rewriting.

AddSystem ( String systemId, String uri ) : SystemEntry

Adds a rule to the catalog directing the given system identifier to the indicated URI.

AddSystem ( String systemId, String uri, String xmlbase ) : SystemEntry

Adds a rule to the catalog directing the given system identifier to the indicated URI.

AddUri ( String name, String uri ) : UriEntry

Adds a rule to the catalog which performs URI matching.

AddUri ( String name, String uri, String xmlbase ) : UriEntry

Adds a rule to the catalog which performs URI matching.

GroupEntry ( GroupEntry parent, String prefer, String xmlbase ) : System

Constructs a GroupEntry given its containing entry and attribute values.

Protected Methods

Method Description
ApplyRules ( String uri, Stack catalogs ) : String

Implements OASIS search rules for URI based resources.

ApplyRules ( String publicId, String systemId, Stack catalogs ) : String

Implements the OASIS search rules for entity resources.

Private Methods

Method Description
ApplyDelegatePublicEntries ( String publicId, String systemId, Stack catalogs ) : String

Applies all the DelegatePublicEntry rules in the current catalog recursing into GroupEntry definitions.

ApplyDelegateSystemEntries ( String publicId, String systemId, Stack catalogs ) : String

Applies all the DelegateSystemEntry rules in the current catalog recursing into GroupEntry definitions.

ApplyDelegateUriEntries ( String uri, Stack catalogs ) : String

Applies all the DelegateUriEntry rules in the current catalog recursing into GroupEntry definitions.

ApplyNextCatalogEntries ( String uri, Stack catalogs ) : String

Applies all the NextCatalogEntry rules in the current catalog recursing into GroupEntry definitions.

ApplyNextCatalogEntries ( String publicId, String systemId, Stack catalogs ) : String

Applies all the NextCatalogEntry rules in the current catalog recursing into GroupEntry definitions.

ApplyPublicEntries ( String publicId, String systemId, Stack catalogs ) : String

Applies all the PublicEntry rules in the current catalog recursing into GroupEntry definitions.

ApplyRewriteSystemEntries ( String publicId, String systemId, Stack catalogs ) : String

Applies all the RewriteSystemEntry rules in the current catalog recursing into GroupEntry definitions.

ApplyRewriteUriEntries ( String uri, Stack catalogs ) : String

Applies all the RewriteUriEntry rules in the current catalog recursing into GroupEntry definitions.

ApplySystemEntries ( String publicId, String systemId, Stack catalogs ) : String

Applies all the SystemEntry rules in the current catalog recursing into Group definitions.

ApplyUriEntries ( String uri, Stack catalogs ) : String

Applies all the UriEntry rules in the current catalog recursing into GroupEntry definitions.

Method Details

AddDelegatePublic() public method

Adds a rule to the catalog which will direct the resolution for any public identifier that starts with the given prefix to a sub-catalog file.
public AddDelegatePublic ( String startString, String catalog ) : DelegatePublicEntry
startString String The public identifier prefix to match
catalog String The URI of the sub-catalog.
return DelegatePublicEntry

AddDelegatePublic() public method

Adds a rule to the catalog which will direct the resolution for any public identifier that starts with the given prefix to a sub-catalog file.
public AddDelegatePublic ( String startString, String catalog, String xmlbase ) : DelegatePublicEntry
startString String The public identifier prefix to match
catalog String The URI of the sub-catalog.
xmlbase String The optional xml:base URI
return DelegatePublicEntry

AddDelegateSystem() public method

Adds a rule to the catalog which will direct the resolution for any system identifier that starts with the given prefix to a sub-catalog file.
public AddDelegateSystem ( String startString, String catalog ) : DelegateSystemEntry
startString String The system identifier prefix to match
catalog String The URI of the sub-catalog.
return DelegateSystemEntry

AddDelegateSystem() public method

Adds a rule to the catalog which will direct the resolution for any system identifier that starts with the given prefix to a sub-catalog file.
public AddDelegateSystem ( String startString, String catalog, String xmlbase ) : DelegateSystemEntry
startString String The system identifier prefix to match
catalog String The URI of the sub-catalog.
xmlbase String Optional xml:base value.
return DelegateSystemEntry

AddDelegateUri() public method

Adds a rule with delegates the processing for matched URIs to another catalog.
public AddDelegateUri ( String startString, String catalog ) : DelegateUriEntry
startString String The prefix string to match against.
catalog String The catalog to delegate to.
return DelegateUriEntry

AddDelegateUri() public method

Adds a rule with delegates the processing for matched URIs to another catalog.
public AddDelegateUri ( String startString, String catalog, String xmlbase ) : DelegateUriEntry
startString String The prefix string to match against.
catalog String The catalog to delegate to.
xmlbase String The optional xml:base URI
return DelegateUriEntry

AddNextCatalog() public method

Adds a rule which will cause resolution to chain to another catalog if no match can be found in this one.
public AddNextCatalog ( String catalog ) : NextCatalogEntry
catalog String The URI of the catalog to chain to.
return NextCatalogEntry

AddNextCatalog() public method

Adds a rule which will cause resolution to chain to another catalog if no match can be found in this one.
public AddNextCatalog ( String catalog, String xmlbase ) : NextCatalogEntry
catalog String The URI of the catalog to chain to.
xmlbase String The optional xml:base URI
return NextCatalogEntry

AddPublic() public method

Adds a rule to the catalog directing the given public identifier to the indicated URI.
public AddPublic ( String publicId, String uri ) : PublicEntry
publicId String The public identifier to be mapped.
uri String The corresponding URI.
return PublicEntry

AddPublic() public method

Adds a rule to the catalog directing the given public identifier to the indicated URI.
public AddPublic ( String publicId, String uri, String xmlbase ) : PublicEntry
publicId String The public identifier to be mapped.
uri String The corresponding URI.
xmlbase String Optional xml:base value.
return PublicEntry

AddRewriteSystem() public method

Adds a rule to the catalog which will cause a matching system identifier to its starting prefix replaced.
public AddRewriteSystem ( String startString, String rewritePrefix ) : RewriteSystemEntry
startString String The system identifier prefix to match.
rewritePrefix String The new prefix to replace with.
return RewriteSystemEntry

AddRewriteUri() public method

Adds a rule to the catalog which perform URI rewriting.
public AddRewriteUri ( String startString, String rewritePrefix ) : RewriteUriEntry
startString String The prefix string to match with.
rewritePrefix String The string to replace matches with.
return RewriteUriEntry

AddSystem() public method

Adds a rule to the catalog directing the given system identifier to the indicated URI.
public AddSystem ( String systemId, String uri ) : SystemEntry
systemId String The system identifier to be mapped.
uri String The corresponding URI.
return SystemEntry

AddSystem() public method

Adds a rule to the catalog directing the given system identifier to the indicated URI.
public AddSystem ( String systemId, String uri, String xmlbase ) : SystemEntry
systemId String The system identifier to be mapped.
uri String The corresponding URI.
xmlbase String Optional xml:base value.
return SystemEntry

AddUri() public method

Adds a rule to the catalog which performs URI matching.
public AddUri ( String name, String uri ) : UriEntry
name String The URI to match with.
uri String The URI to replace with.
return UriEntry

AddUri() public method

Adds a rule to the catalog which performs URI matching.
public AddUri ( String name, String uri, String xmlbase ) : UriEntry
name String The URI to match with.
uri String The URI to replace with.
xmlbase String The optional xml:base URI
return UriEntry

ApplyRules() protected method

Implements OASIS search rules for URI based resources.
protected ApplyRules ( String uri, Stack catalogs ) : String
uri String The URI of the required resource.
catalogs Stack A stack of catalogs being processed used to /// detect circular dependency.
return String

ApplyRules() protected method

Implements the OASIS search rules for entity resources.
protected ApplyRules ( String publicId, String systemId, Stack catalogs ) : String
publicId String The public identifier of the external entity /// being referenced, or null if none was supplied.
systemId String The system identifier of the external entity /// being referenced.
catalogs Stack A stack of catalogs being processed used to /// detect circular dependency.
return String

GroupEntry() public method

Constructs a GroupEntry given its containing entry and attribute values.
public GroupEntry ( GroupEntry parent, String prefer, String xmlbase ) : System
parent GroupEntry The containing element.
prefer String Optional prefer value.
xmlbase String Optional xml:base value.
return System

Property Details

rules protected property

The list of CatalogComponent that make up the group.
protected List rules
return List