1 /* |
1 /* |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. |
|
3 * @LastModified: Oct 2017 |
3 */ |
4 */ |
4 /* |
5 /* |
5 * Licensed to the Apache Software Foundation (ASF) under one or more |
6 * Licensed to the Apache Software Foundation (ASF) under one or more |
6 * contributor license agreements. See the NOTICE file distributed with |
7 * contributor license agreements. See the NOTICE file distributed with |
7 * this work for additional information regarding copyright ownership. |
8 * this work for additional information regarding copyright ownership. |
18 * limitations under the License. |
19 * limitations under the License. |
19 */ |
20 */ |
20 |
21 |
21 package com.sun.org.apache.xalan.internal.xsltc.dom; |
22 package com.sun.org.apache.xalan.internal.xsltc.dom; |
22 |
23 |
|
24 import com.sun.org.apache.xalan.internal.utils.ObjectFactory; |
23 import com.sun.org.apache.xalan.internal.xsltc.DOM; |
25 import com.sun.org.apache.xalan.internal.xsltc.DOM; |
24 import com.sun.org.apache.xalan.internal.xsltc.Translet; |
26 import com.sun.org.apache.xalan.internal.xsltc.Translet; |
25 import com.sun.org.apache.xalan.internal.xsltc.TransletException; |
27 import com.sun.org.apache.xalan.internal.xsltc.TransletException; |
26 import com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet; |
28 import com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet; |
27 import com.sun.org.apache.xml.internal.utils.LocaleUtility; |
29 import com.sun.org.apache.xml.internal.utils.LocaleUtility; |
28 import com.sun.org.apache.xalan.internal.utils.ObjectFactory; |
|
29 import java.lang.reflect.InvocationTargetException; |
30 import java.lang.reflect.InvocationTargetException; |
|
31 import java.text.Collator; |
30 import java.util.Locale; |
32 import java.util.Locale; |
31 import java.text.Collator; |
|
32 |
33 |
33 public class NodeSortRecordFactory { |
34 public class NodeSortRecordFactory { |
34 |
35 |
35 private static int DESCENDING = "descending".length(); |
36 private static int DESCENDING = "descending".length(); |
36 private static int NUMBER = "number".length(); |
37 private static int NUMBER = "number".length(); |
37 |
38 |
38 private final DOM _dom; |
39 private final DOM _dom; |
39 private final String _className; |
40 private final String _className; |
40 private Class _class; |
41 private Class<?> _class; |
41 private SortSettings _sortSettings; |
42 private SortSettings _sortSettings; |
42 |
43 |
43 /** |
44 /** |
44 * |
45 * |
45 */ |
46 */ |