|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
java.lang.Object | +--org.xml.sax.helpers.LocatorImpl
옵션으로서 Locator 의 간이 구현을 제공합니다.
이 모듈은 원시 코드, 문서 모두 공개 도메인에 놓여져 있습니다. 따라서, 내용에 관한프로텍션은 일절 제공되지 않습니다.
이 클래스는 주로 어플리케이션 작성자를 대상으로 하고 있습니다. 어플리케이션 작성자는 이 클래스를 사용해, 아래와 같이 문서의 구문 분석중에 locator의 지속적인 snapshot를 작성할 수가 있습니다.
Locator locator; Locator startloc; public void setLocator (Locator locator) { // note the locator this.locator = locator; } public void startDocument () { // save the location of the start of the document // for future use. Locator startloc = new LocatorImpl(locator); }
통상, 파서의 작성자는 이 클래스를 사용하지 않습니다. 이것은 정기적으로 Locator 오브젝트를 갱신하는 것보다도, 필요에 따라서 위치 정보를 제공하는 편이 효율적이기 때문입니다.
Locator
생성자의 개요 | |
LocatorImpl ()
디폴트의 인수 없음의 constructor 입니다. |
|
LocatorImpl (Locator locator)
constructor를 카피합니다. |
메소드의 개요 | |
int |
getColumnNumber ()
보존되고 있는 열번호를 돌려줍니다 (개시 번호는 1). |
int |
getLineNumber ()
보존되고 있는 행 번호를 돌려줍니다 (개시 번호는 1). |
String |
getPublicId ()
보존되고 있는 공개 식별자를 돌려줍니다. |
String |
getSystemId ()
보존되고 있는 시스템 식별자를 돌려줍니다. |
void |
setColumnNumber (int columnNumber)
이 locator의 열번호를 설정합니다 (개시 번호는 1). |
void |
setLineNumber (int lineNumber)
이 locator의 행 번호를 설정합니다 (개시 번호는 1). |
void |
setPublicId (String publicId)
이 locator의 공개 식별자를 설정합니다. |
void |
setSystemId (String systemId)
이 locator의 시스템 식별자를 설정합니다. |
클래스 java.lang. Object 에서 상속받은 메소드 |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
생성자의 상세 |
public LocatorImpl()
이 클래스의 주목적은 기존의 Locator 의 snapshot를 작성하는 것이므로, 통상 너무 실용적이지는 않습니다.
public LocatorImpl(Locator locator)
locator의 현재 상태의 지속적인 카피를 작성합니다. 원의 locator가 변경되어도, 카피에는 원의 값이 보존되고 있습니다. 이 카피는 DocumentHandler 메소드의 스코프외에서도 사용 가능합니다.
locator
- 카피 대상의 locator메소드의 상세 |
public String getPublicId()
Locator
내의 getPublicId
Locator.getPublicId()
,
setPublicId(java.lang.String)
public String getSystemId()
Locator
내의 getSystemId
Locator.getSystemId()
,
setSystemId(java.lang.String)
public int getLineNumber()
Locator
내의 getLineNumber
Locator.getLineNumber()
,
setLineNumber(int)
public int getColumnNumber()
Locator
내의 getColumnNumber
Locator.getColumnNumber()
,
setColumnNumber(int)
public void setPublicId(String publicId)
publicId
- 새로운 공개 식별자. 사용할 수 없는 경우는 nullgetPublicId()
public void setSystemId(String systemId)
systemId
- 새로운 시스템 식별자. 사용할 수 없는 경우는 nullgetSystemId()
public void setLineNumber(int lineNumber)
lineNumber
- 행 번호. 사용할 수 없는 경우는 -1getLineNumber()
public void setColumnNumber(int columnNumber)
columnNumber
- 열번호. 사용할 수 없는 경우는 -1getColumnNumber()
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
Java, Java 2 D, 및 JDBC 는 미국 및 그 외의 나라에 있어서의 미국 Sun Microsystems, Inc. 의 상표 혹은 등록상표입니다.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.