|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectorg.xml.sax.helpers.LocatorImpl
public class LocatorImpl
옵션으로서 Locator 의 간이 구현을 제공합니다.
이 모듈은, 원시 코드, 문서 모두 공개 도메인에 놓여져 있습니다. 따라서, 내용에 관한보증은 일절 제공되지 않습니다. 상세한 것에 대하여는,http://www.saxproject.org 를 참조해 주세요.
이 클래스는, 주로 어플리케이션 작성자를 대상으로 하고 있습니다. 어플리케이션 작성자는, 이 클래스를 사용해, 아래와 같이 문서의 구문 분석중에 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 ()
디폴트의 인수 없음의 생성자 입니다. |
|
LocatorImpl (Locator locator)
생성자 을 카피합니다. |
메소드의 개요 | |
---|---|
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 Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.