Class WildcardAlias

  • All Implemented Interfaces:
    Alias

    public class WildcardAlias
    extends java.lang.Object
    implements Alias
    Wildcard Alias functionality to create aliases for packages, namespaces or multiple similar named classes. One single '*' wildcard character is supported in the names.

    See Alias for concrete examples.
    • Constructor Summary

      Constructors 
      Constructor Description
      WildcardAlias​(java.lang.String storedPattern, java.lang.String runtimePattern)
      Create a WildcardAlias with two patterns, the stored pattern and the pattern that is to be used at runtime.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String resolveRuntimeName​(java.lang.String runtimeTypeName)
      resolving is done through simple pattern matching
      java.lang.String resolveStoredName​(java.lang.String storedTypeName)
      resolving is done through simple pattern matching
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WildcardAlias

        public WildcardAlias​(java.lang.String storedPattern,
                             java.lang.String runtimePattern)
        Create a WildcardAlias with two patterns, the stored pattern and the pattern that is to be used at runtime. One single '*' is allowed as a wildcard character.
    • Method Detail

      • resolveRuntimeName

        public java.lang.String resolveRuntimeName​(java.lang.String runtimeTypeName)
        resolving is done through simple pattern matching
        Specified by:
        resolveRuntimeName in interface Alias
      • resolveStoredName

        public java.lang.String resolveStoredName​(java.lang.String storedTypeName)
        resolving is done through simple pattern matching
        Specified by:
        resolveStoredName in interface Alias