我在学习wsdl4j 解析wsdl时,遇到的一个问题,如下图所示,得到结构:
当我使用:
XMLType xmlType = elementDecl.getType();
想获得 xmlType,也就是那个DefferedSimpleType,总是null。不知道怎么回事,我调试下,的确里面是有东西的,难道不能用这个语句获得吗,求指点、
我再去看DefferedSimpleType接口时,看到这样解释的:
Package private class to handle the case where a simple type can't be instanciated because its parent has not yet been read
解释为:“包私有类来处理的情况下,一个简单的类不能实例化的因为其父元素尚未阅读。”
是什么意思嗯?