public abstract class JaxpVersion extends Object
Only distinguishes between JAXP 1.0, 1.1, 1.3, 1.4, and 1.5, since JAXP 1.2 was a maintenance release with no new classes.
Modifier and Type | Field and Description |
---|---|
static int |
JAXP_10
Constant identifying JAXP 1.0.
|
static int |
JAXP_11
Constant identifying JAXP 1.1.
|
static int |
JAXP_13
Constant identifying JAXP 1.3.
|
static int |
JAXP_14
Constant identifying JAXP 1.4.
|
static int |
JAXP_15
Constant identifying JAXP 1.5.
|
Constructor and Description |
---|
JaxpVersion() |
Modifier and Type | Method and Description |
---|---|
static int |
getJaxpVersion()
Gets the JAXP version.
|
static boolean |
isAtLeastJaxp14()
Convenience method to determine if the current JAXP version is at least 1.4 (packaged with JDK 1.6).
|
public static final int JAXP_10
public static final int JAXP_11
public static final int JAXP_13
public static final int JAXP_14
public static final int JAXP_15
public static int getJaxpVersion()
(getJaxpVersion() < JAXP_13)
.public static boolean isAtLeastJaxp14()
true
if the current JAXP version is at least JAXP 1.4getJaxpVersion()
,
JAXP_14
Copyright © 2020 Pivotal Software. All rights reserved.