|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.xml.bind.util.ValidationEventCollector
public class ValidationEventCollector
모든 이벤트를 수집하는 ValidationEventHandler
구현.
이 클래스를 사용하려면 , 새로운 인스턴스를 작성해, 그것을 Validator, Unmarshaller, Marshaller 클래스의 setEventHandler 메소드에 건네줍니다. 검증 또는 비정렬화의 호출이 완료한 후, getEvents 메소드를 호출해, 보고된 모든 에러 및 경고를 가져옵니다.
Validator
,
ValidationEventHandler
,
ValidationEvent
,
ValidationEventLocator
생성자 의 개요 | |
---|---|
ValidationEventCollector ()
|
메소드의 개요 | |
---|---|
ValidationEvent [] |
getEvents ()
수집된 에러 및 경고마다의 카피를 포함한, ValidationEvent 객체의 배열을 돌려줍니다. |
boolean |
handleEvent (ValidationEvent event)
검증 경고 또는 에러의 통지를 받습니다. |
boolean |
hasEvents ()
이 이벤트 수집가가 적어도 1 개의 ValidationEvent 가 포함한 경우, true 를 돌려줍니다. |
void |
reset ()
수집된 모든 에러와 경고를 소거합니다. |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
생성자 의 상세 |
---|
public ValidationEventCollector()
메소드의 상세 |
---|
public ValidationEvent [] getEvents()
public void reset()
public boolean hasEvents()
public boolean handleEvent(ValidationEvent event)
ValidationEventHandler
의 기술:ValidationEventLocator
가 파묻힙니다.
미확인의 실행시 예외가 이 메소드로부터 throw 되었을 경우, JAXB 프로바이더는 메소드가 false 를 돌려주었는지와 같이 그것을 처리해, 현재의 비정렬화, 검증, 또는 정렬화 조작을 중지합니다.
ValidationEventHandler
내의 handleEvent
event
- 캡슐화된 검증 이벤트 핸들러 정보. 이
파라미터가 null 의 경우, 프로바이더 에러
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.