1 /*
2 * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
3 * @LastModified: Nov 2017
4 */
5 /*
6 * Licensed to the Apache Software Foundation (ASF) under one or more
7 * contributor license agreements. See the NOTICE file distributed with
8 * this work for additional information regarding copyright ownership.
9 * The ASF licenses this file to You under the Apache License, Version 2.0
10 * (the "License"); you may not use this file except in compliance with
11 * the License. You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21 /*
22 * $Id: TemplatesImpl.java,v 1.8 2007/03/26 20:12:27 spericas Exp $
23 */
52 import java.security.ProtectionDomain;
53 import java.util.Arrays;
54 import java.util.HashMap;
55 import java.util.Map;
56 import java.util.Optional;
57 import java.util.Properties;
58 import java.util.Set;
59 import javax.xml.XMLConstants;
60 import javax.xml.transform.Templates;
61 import javax.xml.transform.Transformer;
62 import javax.xml.transform.TransformerConfigurationException;
63 import javax.xml.transform.URIResolver;
64 import jdk.xml.internal.SecuritySupport;
65
66
67 /**
68 * @author Morten Jorgensen
69 * @author G. Todd Millerj
70 * @author Jochen Cordes <Jochen.Cordes@t-online.de>
71 * @author Santiago Pericas-Geertsen
72 */
73 public final class TemplatesImpl implements Templates, Serializable {
74 static final long serialVersionUID = 673094361519270707L;
75 public final static String DESERIALIZE_TRANSLET = "jdk.xml.enableTemplatesImplDeserialization";
76
77 /**
78 * Name of the superclass of all translets. This is needed to
79 * determine which, among all classes comprising a translet,
80 * is the main one.
81 */
82 private static String ABSTRACT_TRANSLET
83 = "com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet";
84
85 /**
86 * Name of the main class or default name if unknown.
87 */
88 private String _name = null;
89
90 /**
91 * Contains the actual class definition for the translet class and
|
1 /*
2 * Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
3 */
4 /*
5 * Licensed to the Apache Software Foundation (ASF) under one or more
6 * contributor license agreements. See the NOTICE file distributed with
7 * this work for additional information regarding copyright ownership.
8 * The ASF licenses this file to You under the Apache License, Version 2.0
9 * (the "License"); you may not use this file except in compliance with
10 * the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20 /*
21 * $Id: TemplatesImpl.java,v 1.8 2007/03/26 20:12:27 spericas Exp $
22 */
51 import java.security.ProtectionDomain;
52 import java.util.Arrays;
53 import java.util.HashMap;
54 import java.util.Map;
55 import java.util.Optional;
56 import java.util.Properties;
57 import java.util.Set;
58 import javax.xml.XMLConstants;
59 import javax.xml.transform.Templates;
60 import javax.xml.transform.Transformer;
61 import javax.xml.transform.TransformerConfigurationException;
62 import javax.xml.transform.URIResolver;
63 import jdk.xml.internal.SecuritySupport;
64
65
66 /**
67 * @author Morten Jorgensen
68 * @author G. Todd Millerj
69 * @author Jochen Cordes <Jochen.Cordes@t-online.de>
70 * @author Santiago Pericas-Geertsen
71 * @LastModified: Nov 2017
72 */
73 public final class TemplatesImpl implements Templates, Serializable {
74 static final long serialVersionUID = 673094361519270707L;
75 public final static String DESERIALIZE_TRANSLET = "jdk.xml.enableTemplatesImplDeserialization";
76
77 /**
78 * Name of the superclass of all translets. This is needed to
79 * determine which, among all classes comprising a translet,
80 * is the main one.
81 */
82 private static String ABSTRACT_TRANSLET
83 = "com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet";
84
85 /**
86 * Name of the main class or default name if unknown.
87 */
88 private String _name = null;
89
90 /**
91 * Contains the actual class definition for the translet class and
|