Class Mapper.ContextList

  • Enclosing class:
    Mapper

    protected static final class Mapper.ContextList
    extends java.lang.Object
    List of mapped contexts.
    • Field Detail

      • nesting

        public final int nesting
        The nesting level.
    • Constructor Detail

      • ContextList

        public ContextList()
        Default constructor.
    • Method Detail

      • addContext

        public Mapper.ContextList addContext​(Mapper.MappedContext mappedContext,
                                             int slashCount)
        Add a context to the list.
        Parameters:
        mappedContext - The context to add
        slashCount - The number of slashes in the path
        Returns:
        the new ContextList or null if failed
      • removeContext

        public Mapper.ContextList removeContext​(java.lang.String path)
        Remove a context from the list.
        Parameters:
        path - The path of the context to remove
        Returns:
        the new ContextList or null if failed