public class ValidationEventLocatorImpl extends Object implements ValidationEventLocator
允许JAXB提供者使用任何实现ValidationEventLocator接口的类。 这个课程只是为了方便起见。
Validator , ValidationEventHandler , ValidationEvent , ValidationEventLocator 
       | Constructor and Description | 
|---|
| ValidationEventLocatorImpl()
              创建一个所有字段不可用的对象。 
             | 
| ValidationEventLocatorImpl(Locator loc)
              从org.xml.sax.Locator构造一个对象。 
             | 
| ValidationEventLocatorImpl(Node _node)
              构造指向DOM节点的对象。 
             | 
| ValidationEventLocatorImpl(Object _object)
              构造指向JAXB内容对象的对象。 
             | 
| ValidationEventLocatorImpl(SAXParseException e)
              根据SAXParseException的位置信息构造一个对象。 
             | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getColumnNumber()
              返回列号(如果有) 
             | 
| int | getLineNumber()
              返回行号(如果有) 
             | 
| Node | getNode()
              返回对DOM节点的引用(如果可用) 
             | 
| Object | getObject()
              返回Java内容树中对象的引用(如果可用) 
             | 
| int | getOffset()
              如果可用,返回字节偏移量 
             | 
| URL | getURL()
              返回XML源的名称作为URL(如果可用) 
             | 
| void | setColumnNumber(int _columnNumber)
              设置此事件定位器上的columnNumber字段。 
             | 
| void | setLineNumber(int _lineNumber)
              在此事件定位器上设置lineNumber字段。 
             | 
| void | setNode(Node _node)
              设置此事件定位器上的“节点”字段。 
             | 
| void | setObject(Object _object)
              设置此事件定位器上的对象字段。 
             | 
| void | setOffset(int _offset)
              设置此事件定位器上的偏移量字段。 
             | 
| void | setURL(URL _url)
              设置此事件定位器上的URL字段。 
             | 
| String | toString()
              以有助于调试的格式返回此对象的字符串表示形式。 
             | 
public ValidationEventLocatorImpl()
public ValidationEventLocatorImpl(Locator loc)
loc - 将用于填充此事件定位器的SAX Locator对象。 
           IllegalArgumentException - 如果定位器为空 
           public ValidationEventLocatorImpl(SAXParseException e)
e - 将用于填充此事件定位器的SAXParseException对象。 
           IllegalArgumentException - 如果SAXParseException为空 
           public ValidationEventLocatorImpl(Node _node)
_node - 将用于填充此事件定位器的DOM Node对象。 
           IllegalArgumentException - 如果节点为空 
           public ValidationEventLocatorImpl(Object _object)
_object - 将用于填充此事件定位器的对象。 
           IllegalArgumentException - 如果对象为空 
           public URL getURL()
ValidationEventLocator 
          getURL在接口 
            ValidationEventLocator 
           ValidationEventLocator.getURL() 
           public void setURL(URL _url)
_url - 网址 
           public int getOffset()
ValidationEventLocator 
          getOffset在界面 
            ValidationEventLocator 
           ValidationEventLocator.getOffset() 
           public void setOffset(int _offset)
_offset - 偏移 
           public int getLineNumber()
ValidationEventLocator复制 
          getLineNumber在界面 
            ValidationEventLocator 
           ValidationEventLocator.getLineNumber() 
           public void setLineNumber(int _lineNumber)
_lineNumber - 行号 
           public int getColumnNumber()
ValidationEventLocator 
          getColumnNumber在界面 
            ValidationEventLocator 
           ValidationEventLocator.getColumnNumber() 
           public void setColumnNumber(int _columnNumber)
_columnNumber - 列号 
           public Object getObject()
ValidationEventLocator 
          getObject在界面 
            ValidationEventLocator 
           ValidationEventLocator.getObject() 
           public void setObject(Object _object)
_object - java内容对象 
           public Node getNode()
ValidationEventLocator 
          getNode在界面 
            ValidationEventLocator 
           ValidationEventLocator.getNode() 
           public void setNode(Node _node)
_node - 节点 
           public String toString()
toString在 
            Object 
           Object.equals(Object) 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.