jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/Template.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
3 */ |
3 */ |
4 /* |
4 /* |
5 * Licensed to the Apache Software Foundation (ASF) under one or more |
5 * Licensed to the Apache Software Foundation (ASF) under one or more |
6 * contributor license agreements. See the NOTICE file distributed with |
6 * contributor license agreements. See the NOTICE file distributed with |
7 * this work for additional information regarding copyright ownership. |
7 * this work for additional information regarding copyright ownership. |
15 * distributed under the License is distributed on an "AS IS" BASIS, |
15 * distributed under the License is distributed on an "AS IS" BASIS, |
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
17 * See the License for the specific language governing permissions and |
17 * See the License for the specific language governing permissions and |
18 * limitations under the License. |
18 * limitations under the License. |
19 */ |
19 */ |
20 /* |
|
21 * $Id: Template.java,v 1.2.4.1 2005/09/12 11:30:11 pvedula Exp $ |
|
22 */ |
|
23 |
20 |
24 package com.sun.org.apache.xalan.internal.xsltc.compiler; |
21 package com.sun.org.apache.xalan.internal.xsltc.compiler; |
25 |
22 |
26 import java.util.Vector; |
23 import java.util.Vector; |
27 |
24 |
61 // template is a template which only has a name but no match pattern. |
58 // template is a template which only has a name but no match pattern. |
62 private boolean _isSimpleNamedTemplate = false; |
59 private boolean _isSimpleNamedTemplate = false; |
63 |
60 |
64 // The list of parameters in this template. This is only used |
61 // The list of parameters in this template. This is only used |
65 // for simple named templates. |
62 // for simple named templates. |
66 private Vector _parameters = new Vector(); |
63 private Vector<Param> _parameters = new Vector<>(); |
67 |
64 |
68 public boolean hasParams() { |
65 public boolean hasParams() { |
69 return _parameters.size() > 0; |
66 return _parameters.size() > 0; |
70 } |
67 } |
71 |
68 |
83 |
80 |
84 public void addParameter(Param param) { |
81 public void addParameter(Param param) { |
85 _parameters.addElement(param); |
82 _parameters.addElement(param); |
86 } |
83 } |
87 |
84 |
88 public Vector getParameters() { |
85 public Vector<Param> getParameters() { |
89 return _parameters; |
86 return _parameters; |
90 } |
87 } |
91 |
88 |
92 public void disable() { |
89 public void disable() { |
93 _disabled = true; |
90 _disabled = true; |