类 CoreNamespaceUtils
- java.lang.Object
- org.springframework.batch.core.configuration.xml.CoreNamespaceUtils
public class CoreNamespaceUtils extends java.lang.Object
Utility methods used in parsing of the batch core namespace- 作者:
- Thomas Risberg, Michael Minella
构造器概要
构造器 构造器 说明 CoreNamespaceUtils()
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static void
autoregisterBeansForNamespace(org.springframework.beans.factory.xml.ParserContext parserContext, java.lang.Object source)
static boolean
isAbstract(org.w3c.dom.Element element)
static boolean
isUnderspecified(org.w3c.dom.Element element)
Should this element be treated as incomplete?static boolean
namespaceMatchesVersion(org.w3c.dom.Element element)
Check that the schema location declared in the source file being parsed matches the Spring Batch version.
构造器详细资料
CoreNamespaceUtils
public CoreNamespaceUtils()
方法详细资料
autoregisterBeansForNamespace
public static void autoregisterBeansForNamespace(org.springframework.beans.factory.xml.ParserContext parserContext, java.lang.Object source)
isUnderspecified
public static boolean isUnderspecified(org.w3c.dom.Element element)
Should this element be treated as incomplete? If it has a parent or is abstract, then it may not have all properties.- 参数:
element
- to be evaluated.- 返回:
- TRUE if the element is abstract or has a parent
isAbstract
public static boolean isAbstract(org.w3c.dom.Element element)
- 参数:
element
- to be evaluated.- 返回:
- TRUE if the element is abstract
namespaceMatchesVersion
public static boolean namespaceMatchesVersion(org.w3c.dom.Element element)
Check that the schema location declared in the source file being parsed matches the Spring Batch version. (The old 2.0 schema is not 100% compatible with the new parser, so it is an error to explicitly define 2.0. It might be an error to declare spring-batch.xsd as an alias, but you are only going to find that out when one of the sub parses breaks.)- 参数:
element
- the element that is to be parsed next- 返回:
- true if we find a schema declaration that matches