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 11 java.xml.jmod - XML Module
JDK 11 java.xml.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) module.
JDK 11 XML module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.xml.jmod.
JDK 11 XML module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 XML module source code files are stored in \fyicenter\jdk-11.0.1\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/xalan/internal/utils/FeaturePropertyBase.java
/* * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.org.apache.xalan.internal.utils; import com.sun.org.apache.xalan.internal.XalanConstants; import jdk.xml.internal.SecuritySupport; /** * This is the base class for features and properties * */ public abstract class FeaturePropertyBase { /** * States of the settings of a property, in the order: default value, value * set by FEATURE_SECURE_PROCESSING, jaxp.properties file, jaxp system * properties, and jaxp api properties */ public static enum State { //this order reflects the overriding order DEFAULT, FSP, JAXPDOTPROPERTIES, SYSTEMPROPERTY, APIPROPERTY } /** * Values of the properties as defined in enum Properties */ String[] values = null; /** * States of the settings for each property in Properties above */ State[] states = {State.DEFAULT, State.DEFAULT}; /** * Set the value for a specific property. * * @param property the property * @param state the state of the property * @param value the value of the property */ public void setValue(Enum<?> property, State state, String value) { //only update if it shall override if (state.compareTo(states[property.ordinal()]) >= 0) { values[property.ordinal()] = value; states[property.ordinal()] = state; } } /** * Set the value of a property by its index * @param index the index of the property * @param state the state of the property * @param value the value of the property */ public void setValue(int index, State state, String value) { //only update if it shall override if (state.compareTo(states[index]) >= 0) { values[index] = value; states[index] = state; } } /** * Set value by property name and state * @param propertyName property name * @param state the state of the property * @param value the value of the property * @return true if the property is managed by the security property manager; * false if otherwise. */ public boolean setValue(String propertyName, State state, Object value) { int index = getIndex(propertyName); if (index > -1) { setValue(index, state, (String)value); return true; } return false; } /** * Set value by property name and state * @param propertyName property name * @param state the state of the property * @param value the value of the property * @return true if the property is managed by the security property manager; * false if otherwise. */ public boolean setValue(String propertyName, State state, boolean value) { int index = getIndex(propertyName); if (index > -1) { if (value) { setValue(index, state, XalanConstants.FEATURE_TRUE); } else { setValue(index, state, XalanConstants.FEATURE_FALSE); } return true; } return false; } /** * Return the value of the specified property * * @param property the property * @return the value of the property */ public String getValue(Enum<?> property) { return values[property.ordinal()]; } /** * Return the value of the specified property * * @param property the property * @return the value of the property */ public String getValue(String property) { int index = getIndex(property); if (index > -1) { return getValueByIndex(index); } return null; } /** * Return the value of the specified property. * * @param propertyName the property name * @return the value of the property as a string. If a property is managed * by this manager, its value shall not be null. */ public String getValueAsString(String propertyName) { int index = getIndex(propertyName); if (index > -1) { return getValueByIndex(index); } return null; } /** * Return the value of a property by its ordinal * @param index the index of a property * @return value of a property */ public String getValueByIndex(int index) { return values[index]; } /** * Get the index by property name * @param propertyName property name * @return the index of the property if found; return -1 if not */ public abstract int getIndex(String propertyName); public <E extends Enum<E>> int getIndex(Class<E> property, String propertyName) { for (Enum<E> enumItem : property.getEnumConstants()) { if (enumItem.toString().equals(propertyName)) { //internally, ordinal is used as index return enumItem.ordinal(); } } return -1; }; /** * Read from system properties, or those in jaxp.properties * * @param property the property * @param systemProperty the name of the system property */ void getSystemProperty(Enum<?> property, String systemProperty) { try { String value = SecuritySupport.getSystemProperty(systemProperty); if (value != null) { values[property.ordinal()] = value; states[property.ordinal()] = State.SYSTEMPROPERTY; return; } value = SecuritySupport.readJAXPProperty(systemProperty); if (value != null) { values[property.ordinal()] = value; states[property.ordinal()] = State.JAXPDOTPROPERTIES; } } catch (NumberFormatException e) { //invalid setting ignored } } }
⏎ com/sun/org/apache/xalan/internal/utils/FeaturePropertyBase.java
Or download all of them as a single archive file:
File name: java.xml-11.0.1-src.zip File size: 4876106 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.xml.crypto.jmod - XML Crypto Module
2020-08-25, 176498👍, 0💬
Popular Posts:
Java Cryptography Extension 1.2.2 JAR File Size and Download Location: File name: jce.jar, jce-1.2.2...
How to download and install javamail-1_2.zip? The JavaMail API is a set of abstract APIs that model ...
JDK 11 jdk.jconsole.jmod is the JMOD file for JDK 11 JConsole tool, which can be invoked by the "jco...
JAX-WS is an API for building web services and clients. It is the next generation Web Services API r...
What Is fop.jar? I got it from the fop-2.7-bin.zip. fop.jar in fop-2.7-bin.zip is the JAR file for F...