ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/util/digester/Rules.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/util/digester/Rules.java
Status
scanned
Type
file
Name
Rules.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
3105 (3.0 KB)
MD5
9946fa61d30121ba1acff2a23555d83d
SHA1
7c2c7657a3aed1cdfd4e7d274c4b2c8ac9ecb0b8
SHA256
f91246dbc3e11eb8d8a12b71b21177475f08c0d08559f0f1c4affe1d2192c138
SHA512

      
    
SHA1_git
c430899abe05d732f65b6d3e8987c7f6723c2edf
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
Rules.java | 3.0 KB |

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tomcat.util.digester; import java.util.List; /** * Public interface defining a collection of Rule instances (and corresponding matching patterns) plus an implementation * of a matching policy that selects the rules that match a particular pattern of nested elements discovered during * parsing. */ public interface Rules { // ------------------------------------------------------------- Properties /** * @return the Digester instance with which this Rules instance is associated. */ Digester getDigester(); /** * Set the Digester instance with which this Rules instance is associated. * * @param digester The newly associated Digester instance */ void setDigester(Digester digester); // --------------------------------------------------------- Public Methods /** * Register a new Rule instance matching the specified pattern. * * @param pattern Nesting pattern to be matched for this Rule * @param rule Rule instance to be registered */ void add(String pattern, Rule rule); /** * Clear all existing Rule instance registrations. */ void clear(); /** * Return a List of all registered Rule instances that match the specified nesting pattern, or a zero-length List if * there are no matches. If more than one Rule instance matches, they <strong>must</strong> be returned in the order * originally registered through the <code>add()</code> method. * * @param namespaceURI Namespace URI for which to select matching rules, or <code>null</code> to match regardless of * namespace URI * @param pattern Nesting pattern to be matched * * @return a rules list */ List<Rule> match(String namespaceURI, String pattern); /** * Return a List of all registered Rule instances, or a zero-length List if there are no registered Rule instances. * If more than one Rule instance has been registered, they <strong>must</strong> be returned in the order * originally registered through the <code>add()</code> method. * * @return a rules list */ List<Rule> rules(); }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
31.9
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9