JavaTM Platform
Standard Ed. 6

javax.xml.bind.helpers
클래스 ValidationEventLocatorImpl

java.lang.Object 
  상위를 확장 javax.xml.bind.helpers.ValidationEventLocatorImpl
모든 구현된 인터페이스:
ValidationEventLocator


public class ValidationEventLocatorImpl
extends Object
implements ValidationEventLocator

ValidationEventLocator 인터페이스의 디폴트 구현입니다.

JAXB 프로바이더는, ValidationEventLocator 인터페이스를 구현하는 임의의 클래스를 사용하는 것을 허가되고 있습니다. 이 클래스는 단지 편리성을 위해서(때문에) 제공되고 있습니다.

도입된 버젼:
JAXB1. 0
관련 항목:
Validator , ValidationEventHandler , ValidationEvent , ValidationEventLocator

생성자 의 개요
ValidationEventLocatorImpl ()
          모든 필드가 사용 불가의 객체를 작성합니다.
ValidationEventLocatorImpl (Locator  loc)
          org.xml.sax.Locator 로부터 객체를 작성합니다.
ValidationEventLocatorImpl (Node  _node)
          DOM Node 를 포인트 하는 객체를 구축합니다.
ValidationEventLocatorImpl (Object  _object)
          JAXB 컨텐츠 객체를 포인트 하는 객체를 구축합니다.
ValidationEventLocatorImpl (SAXParseException  e)
          SAXParseException 의 위치 정보를 기초로 객체를 구축합니다.
 
메소드의 개요
 int getColumnNumber ()
          사용 가능한 경우, 열번호를 돌려줍니다
 int getLineNumber ()
          사용 가능한 경우, 행 번호를 돌려줍니다
 Node getNode ()
          사용 가능한 경우, DOM Node 에의 참조를 돌려줍니다
 Object getObject ()
          사용 가능한 경우, Java 컨텐츠 트리내의 객체에의 참조를 돌려줍니다
 int getOffset ()
          사용 가능한 경우, 바이트 오프셋(offset)를 돌려줍니다
 URL getURL ()
          XML 소스의 이름을 사용 가능한 경우에는 URL 로서 돌려줍니다
 void setColumnNumber (int _columnNumber)
          이 이벤트 locator의 [columnNumber] 필드를 설정합니다.
 void setLineNumber (int _lineNumber)
          이 이벤트 locator의 [lineNumber] 필드를 설정합니다.
 void setNode (Node  _node)
          이 이벤트 locator의 [Node] 필드를 설정합니다.
 void setObject (Object  _object)
          이 이벤트 locator의 [Object] 필드를 설정합니다.
 void setOffset (int _offset)
          이벤트 locator의 [offset] 필드를 설정합니다.
 void setURL (URL  _url)
          이 이벤트 locator의 [URL] 필드를 설정합니다.
 String toString ()
          디버그에 도움이 되는 형식에서, 이 객체의 캐릭터 라인 표현을 돌려줍니다.
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
 

생성자 의 상세

ValidationEventLocatorImpl

public ValidationEventLocatorImpl()
모든 필드가 사용 불가의 객체를 작성합니다.


ValidationEventLocatorImpl

public ValidationEventLocatorImpl(Locator  loc)
org.xml.sax.Locator 로부터 객체를 작성합니다. 객체의 ColumnNumber, LineNumber 및 URL 는 각각, locator의 getColumnNumber(), getLineNumber() 및 getSystemId() 메소드에 의해 반환된 값으로부터 사용할 수 있습니다. Node, Object, Offset 는 사용할 수 없습니다.

파라미터:
loc - 이 이벤트 locator를 생성하기 위해서 사용하는 SAX Locator 객체
예외:
IllegalArgumentException - Locator 가 null 의 경우

ValidationEventLocatorImpl

public ValidationEventLocatorImpl(SAXParseException  e)
SAXParseException 의 위치 정보를 기초로 객체를 구축합니다. 객체의 ColumnNumber, LineNumber 및 URL 는 각각, locator의 getColumnNumber(), getLineNumber() 및 getSystemId() 메소드에 의해 반환된 값으로부터 사용할 수 있습니다. Node, Object, Offset 는 사용할 수 없습니다.

파라미터:
e - 이 이벤트 locator를 생성하기 위해서 사용하는 SAXParseException 객체
예외:
IllegalArgumentException - SAXParseException 가 null 의 경우

ValidationEventLocatorImpl

public ValidationEventLocatorImpl(Node  _node)
DOM Node 를 포인트 하는 객체를 구축합니다. 객체의 Node 가 사용 가능하게 됩니다. ColumnNumber, LineNumber, Object, Offset, 및 URL 는 사용할 수 없습니다.

파라미터:
_node - 이 이벤트 locator를 생성하기 위해서 사용하는 DOM Node 객체
예외:
IllegalArgumentException - Node 가 null 의 경우

ValidationEventLocatorImpl

public ValidationEventLocatorImpl(Object  _object)
JAXB 컨텐츠 객체를 포인트 하는 객체를 구축합니다. 객체의 Object 가 사용 가능하게 됩니다. ColumnNumber, LineNumber, Node, Offset, URL 는 사용할 수 없습니다.

파라미터:
_object - 이 이벤트 locator를 생성하기 위해서 사용하는 Object
예외:
IllegalArgumentException - Object 가 null 의 경우
메소드의 상세

getURL

public URL  getURL()
인터페이스 ValidationEventLocator 의 기술:
XML 소스의 이름을 사용 가능한 경우에는 URL 로서 돌려줍니다

정의:
인터페이스 ValidationEventLocator 내의 getURL
반환값:
URL 형식의 XML 소스의 이름, 또는, 사용할 수 없는 경우, null
관련 항목:
ValidationEventLocator.getURL()

setURL

public void setURL(URL  _url)
이 이벤트 locator의 [URL] 필드를 설정합니다. null 치도 허가되고 있습니다.

파라미터:
_url - URL

getOffset

public int getOffset()
인터페이스 ValidationEventLocator 의 기술:
사용 가능한 경우, 바이트 오프셋(offset)를 돌려줍니다

정의:
인터페이스 ValidationEventLocator 내의 getOffset
반환값:
입력 소스에의 바이트 오프셋(offset), 또는, 사용할 수 없는 경우,-1
관련 항목:
ValidationEventLocator.getOffset()

setOffset

public void setOffset(int _offset)
이벤트 locator의 [offset] 필드를 설정합니다.

파라미터:
_offset - 오프셋(offset)

getLineNumber

public int getLineNumber()
인터페이스 ValidationEventLocator 의 기술:
사용 가능한 경우, 행 번호를 돌려줍니다

정의:
인터페이스 ValidationEventLocator 내의 getLineNumber
반환값:
행 번호, 또는, 사용할 수 없는 경우,-1
관련 항목:
ValidationEventLocator.getLineNumber()

setLineNumber

public void setLineNumber(int _lineNumber)
이 이벤트 locator의 [lineNumber] 필드를 설정합니다.

파라미터:
_lineNumber - 행 번호

getColumnNumber

public int getColumnNumber()
인터페이스 ValidationEventLocator 의 기술:
사용 가능한 경우, 열번호를 돌려줍니다

정의:
인터페이스 ValidationEventLocator 내의 getColumnNumber
반환값:
열번호, 또는, 사용할 수 없는 경우,-1
관련 항목:
ValidationEventLocator.getColumnNumber()

setColumnNumber

public void setColumnNumber(int _columnNumber)
이 이벤트 locator의 [columnNumber] 필드를 설정합니다.

파라미터:
_columnNumber - 열번호

getObject

public Object  getObject()
인터페이스 ValidationEventLocator 의 기술:
사용 가능한 경우, Java 컨텐츠 트리내의 객체에의 참조를 돌려줍니다

정의:
인터페이스 ValidationEventLocator 내의 getObject
반환값:
Java 컨텐츠 트리내의 객체에의 참조, 또는, 사용할 수 없는 경우, null
관련 항목:
ValidationEventLocator.getObject()

setObject

public void setObject(Object  _object)
이 이벤트 locator의 [Object] 필드를 설정합니다. null 치도 허가되고 있습니다.

파라미터:
_object - Java 컨텐츠 객체

getNode

public Node  getNode()
인터페이스 ValidationEventLocator 의 기술:
사용 가능한 경우, DOM Node 에의 참조를 돌려줍니다

정의:
인터페이스 ValidationEventLocator 내의 getNode
반환값:
DOM Node 에의 참조, 또는, 사용할 수 없는 경우, null
관련 항목:
ValidationEventLocator.getNode()

setNode

public void setNode(Node  _node)
이 이벤트 locator의 [Node] 필드를 설정합니다. null 치도 허가되고 있습니다.

파라미터:
_node - Node

toString

public String  toString()
디버그에 도움이 되는 형식에서, 이 객체의 캐릭터 라인 표현을 돌려줍니다.

오버라이드(override):
클래스 Object 내의 toString
반환값:
이 객체의 캐릭터 라인 표현
관련 항목:
Object.equals(Object)

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.