Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 17 java.xml.jmod - XML Module
JDK 17 java.xml.jmod is the JMOD file for JDK 17 XML (eXtensible Markup Language) module.
JDK 17 XML module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.xml.jmod.
JDK 17 XML module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 XML module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.xml.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/org/apache/xerces/internal/impl/dv/xs/TypeValidator.java
/* * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved. */ /* * 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 com.sun.org.apache.xerces.internal.impl.dv.xs; import com.sun.org.apache.xerces.internal.impl.dv.InvalidDatatypeValueException; import com.sun.org.apache.xerces.internal.impl.dv.ValidationContext; import com.sun.org.apache.xerces.internal.util.XMLChar; import jdk.xml.internal.SecuritySupport; /** * All primitive types plus ID/IDREF/ENTITY/INTEGER are derived from this abstract * class. It provides extra information XSSimpleTypeDecl requires from each * type: allowed facets, converting String to actual value, check equality, * comparison, etc. * * @xerces.internal * * @author Neeraj Bajaj, Sun Microsystems, inc. * @author Sandy Gao, IBM * * @LastModified: Apr 2019 */ public abstract class TypeValidator { private static final boolean USE_CODE_POINT_COUNT_FOR_STRING_LENGTH = Boolean.parseBoolean(SecuritySupport.getSystemProperty( "com.sun.org.apache.xerces.internal.impl.dv.xs.useCodePointCountForStringLength", "false")); // which facets are allowed for this type public abstract short getAllowedFacets(); // convert a string to an actual value. for example, // for number types (decimal, double, float, and types derived from them), // get the BigDecimal, Double, Flout object. // for some types (string and derived), they just return the string itself public abstract Object getActualValue(String content, ValidationContext context) throws InvalidDatatypeValueException; // for ID/IDREF/ENTITY types, do some extra checking after the value is // checked to be valid with respect to both lexical representation and // facets public void checkExtraRules(Object value, ValidationContext context) throws InvalidDatatypeValueException { } // the following methods might not be supported by every DV. // but XSSimpleTypeDecl should know which type supports which methods, // and it's an *internal* error if a method is called on a DV that // doesn't support it. //order constants public static final short LESS_THAN = -1; public static final short EQUAL = 0; public static final short GREATER_THAN = 1; public static final short INDETERMINATE = 2; // where there is distinction between identity and equality, this method // will be overwritten // checks whether the two values are identical; for ex, this distinguishes // -0.0 from 0.0 public boolean isIdentical (Object value1, Object value2) { return value1.equals(value2); } // check the order relation between the two values // the parameters are in compiled form (from getActualValue) public int compare(Object value1, Object value2) { return -1; } // get the length of the value // the parameters are in compiled form (from getActualValue) public int getDataLength(Object value) { if (value instanceof String) { final String str = (String)value; if (!USE_CODE_POINT_COUNT_FOR_STRING_LENGTH) { return str.length(); } return getCodePointLength(str); } return -1; } // get the number of digits of the value // the parameters are in compiled form (from getActualValue) public int getTotalDigits(Object value) { return -1; } // get the number of fraction digits of the value // the parameters are in compiled form (from getActualValue) public int getFractionDigits(Object value) { return -1; } // Returns the length of the string in Unicode code points. private int getCodePointLength(String value) { // Count the number of surrogate pairs, and subtract them from // the total length. final int len = value.length(); int surrogatePairCount = 0; for (int i = 0; i < len - 1; ++i) { if (XMLChar.isHighSurrogate(value.charAt(i))) { if (XMLChar.isLowSurrogate(value.charAt(++i))) { ++surrogatePairCount; } else { --i; } } } return len - surrogatePairCount; } // check whether the character is in the range 0x30 ~ 0x39 public static final boolean isDigit(char ch) { return ch >= '0' && ch <= '9'; } // if the character is in the range 0x30 ~ 0x39, return its int value (0~9), // otherwise, return -1 public static final int getDigit(char ch) { return isDigit(ch) ? ch - '0' : -1; } } // interface TypeValidator
⏎ com/sun/org/apache/xerces/internal/impl/dv/xs/TypeValidator.java
Or download all of them as a single archive file:
File name: java.xml-17.0.5-src.zip File size: 5047495 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.xml.crypto.jmod - XML Crypto Module
2023-07-17, 58305👍, 1💬
Popular Posts:
JDK 11 jdk.localedata.jmod is the JMOD file for JDK 11 Localedata module. JDK 11 Locale Data module ...
maven-settings-builder-3 .8.6.jaris the JAR file for Apache Maven 3.8.6 Settings Builder module. Apa...
Apache Ant Source Code Files are inside the Apache Ant source package file like apache-ant-1.10.10-s...
What Is poi-scratchpad-3.5.jar? poi-scratchpad-3.5.jar is one of the JAR files for Apache POI 3.5, w...
JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module. JDK 17 Desktop module compiled ...