Package org.springframework.xml
Class JaxpVersion
java.lang.Object
org.springframework.xml.JaxpVersion
Helper class used to find the current version of JAXP. We cannot depend on the Java version, since JAXP can be
upgraded independently of the Java version.
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.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma, Greg Turnquist
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Constant identifying JAXP 1.0.static final int
Constant identifying JAXP 1.1.static final int
Constant identifying JAXP 1.3.static final int
Constant identifying JAXP 1.4.static final int
Constant identifying JAXP 1.5. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
Gets the JAXP version.static boolean
Convenience method to determine if the current JAXP version is at least 1.4 (packaged with JDK 1.6).
-
Field Details
-
JAXP_10
public static final int JAXP_10Constant identifying JAXP 1.0.- See Also:
-
JAXP_11
public static final int JAXP_11Constant identifying JAXP 1.1.- See Also:
-
JAXP_13
public static final int JAXP_13Constant identifying JAXP 1.3.- See Also:
-
JAXP_14
public static final int JAXP_14Constant identifying JAXP 1.4.- See Also:
-
JAXP_15
public static final int JAXP_15Constant identifying JAXP 1.5.- See Also:
-
-
Constructor Details
-
JaxpVersion
public JaxpVersion()
-
-
Method Details
-
getJaxpVersion
public static int getJaxpVersion()Gets the JAXP version. This means we can do things like if(getJaxpVersion() < JAXP_13)
. -
isAtLeastJaxp14
public static boolean isAtLeastJaxp14()Convenience method to determine if the current JAXP version is at least 1.4 (packaged with JDK 1.6).- Returns:
true
if the current JAXP version is at least JAXP 1.4- See Also:
-