|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.swing.text.html.parser.DTD
public class DTD
SGML DTD 의 표현입니다. DTD 는 문서의 구문을 기술한 것이어, HTML 문서의 해석에 사용됩니다. 이 내부에는, 요소와 그 속성의 리스트, 및 DTD 로 정의된 엔티티의 리스트가 포함됩니다.
Element
,
AttributeList
,
ContentModel
,
Parser
필드의 개요 | |
---|---|
Element |
applet
|
Element |
base
|
Element |
body
|
Hashtable <String ,Element > |
elementHash
|
Vector <Element > |
elements
|
Hashtable <Object ,Entity > |
entityHash
|
static int |
FILE_VERSION
|
Element |
head
|
Element |
html
|
Element |
isindex
|
Element |
meta
|
String |
name
|
Element |
p
|
Element |
param
|
Element |
pcdata
|
Element |
title
|
인터페이스 javax.swing.text.html.parser. DTDConstants 로부터 상속된 필드 |
---|
ANY , CDATA , CONREF , CURRENT , DEFAULT , EMPTY , ENDTAG , ENTITIES , ENTITY , FIXED , GENERAL , ID , IDREF , IDREFS , IMPLIED , MD , MODEL , MS , NAME , NAMES , NMTOKEN , NMTOKENS , NOTATION , NUMBER , NUMBERS , NUTOKEN , NUTOKENS , PARAMETER , PI , PUBLIC , RCDATA , REQUIRED , SDATA , STARTTAG , SYSTEM |
생성자 의 개요 | |
---|---|
protected |
DTD (String name)
지정된 이름을 가지는 새로운 DTD 를 작성합니다. |
메소드의 개요 | |
---|---|
protected AttributeList |
defAttributeList (String name,
int type,
int modifier,
String value,
String values,
AttributeList atts)
AttributeList 를 작성해, 돌려줍니다. |
protected ContentModel |
defContentModel (int type,
Object obj,
ContentModel next)
새로운 컨텐츠 모델을 작성해, 돌려줍니다. |
protected Element |
defElement (String name,
int type,
boolean omitStart,
boolean omitEnd,
ContentModel content,
String [] exclusions,
String [] inclusions,
AttributeList atts)
Element 를 작성해, 돌려줍니다. |
Entity |
defEntity (String name,
int type,
int ch)
문자 Entity 를 작성해, 돌려줍니다. |
protected Entity |
defEntity (String name,
int type,
String str)
문자 Entity 를 작성해, 돌려줍니다. |
void |
defineAttributes (String name,
AttributeList atts)
Element 의 속성을 정의합니다. |
Element |
defineElement (String name,
int type,
boolean omitStart,
boolean omitEnd,
ContentModel content,
BitSet exclusions,
BitSet inclusions,
AttributeList atts)
지정한 파라미터에 일치하는 Element 를 돌려줍니다. |
Entity |
defineEntity (String name,
int type,
char[] data)
엔티티를 정의합니다. |
static DTD |
getDTD (String name)
지정한 name 를 가지는 DTD 를 돌려줍니다. |
Element |
getElement (int index)
요소를 인덱스로 돌려줍니다. |
Element |
getElement (String name)
요소를 이름으로 가져옵니다. |
Entity |
getEntity (int ch)
문자 엔티티를 가져옵니다. |
Entity |
getEntity (String name)
엔티티를 이름으로 가져옵니다. |
String |
getName ()
DTD 의 이름을 가져옵니다. |
static void |
putDTDHash (String name,
DTD dtd)
|
void |
read (DataInputStream in)
어카이브(archive) 된 형식으로부터 DTD 를 재작성합니다. |
String |
toString ()
이 DTD 의 캐릭터 라인 표현을 돌려줍니다. |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
필드의 상세 |
---|
public String name
public Vector <Element > elements
public Hashtable <String ,Element > elementHash
public Hashtable <Object ,Entity > entityHash
public final Element pcdata
public final Element html
public final Element meta
public final Element base
public final Element isindex
public final Element head
public final Element body
public final Element applet
public final Element param
public final Element p
public final Element title
public static final int FILE_VERSION
생성자 의 상세 |
---|
protected DTD(String name)
name
- 이름 (새로운 DTD 의 String
)메소드의 상세 |
---|
public String getName()
public Entity getEntity(String name)
name
String
에 대응한다
Entity
public Entity getEntity(int ch)
ch
문자에 대응한다
Entity
public Element getElement(String name)
name
- 요구된 String
name
에 대응하는 Element
.
새롭게 작성되는 일도 있다public Element getElement(int index)
index
- 요구하는 인덱스
index
에 대응한다
Element
public Entity defineEntity(String name, int type, char[] data)
type
, 및 data
로 지정되는 Entity
가 존재하는 경우는, 그 엔티티가 돌려주어집니다. 그렇지 않은 경우는, 새로운 Entity
가 작성되어 돌려주어집니다.
name
- Entity
의 이름 (String
)type
- Entity
의 타입data
- Entity
의 데이터
Entity
.
발견되지 않는 경우는, 새로운 Entity
public Element defineElement(String name, int type, boolean omitStart, boolean omitEnd, ContentModel content, BitSet exclusions, BitSet inclusions, AttributeList atts)
Element
를 돌려줍니다. 존재하지 않는 경우는, 새로운 Element
가 작성되어 돌려주어집니다.
name
- Element
의 이름type
- Element
의 타입omitStart
- 개시를 생략 하는 경우는 true
omitEnd
- 종료를 생략 하는 경우는 true
content
- ContentModel
atts
- Element
를 지정한다
AttributeList
Element
public void defineAttributes(String name, AttributeList atts)
Element
의 속성을 정의합니다.
name
- Element
의 이름atts
- Element
를 지정한다
AttributeList
public Entity defEntity(String name, int type, int ch)
Entity
를 작성해, 돌려줍니다.
name
- 엔티티의 이름
Entity
protected Entity defEntity(String name, int type, String str)
Entity
를 작성해, 돌려줍니다.
name
- 엔티티의 이름
Entity
protected Element defElement(String name, int type, boolean omitStart, boolean omitEnd, ContentModel content, String [] exclusions, String [] inclusions, AttributeList atts)
Element
를 작성해, 돌려줍니다.
name
- 요소의 이름
Element
protected AttributeList defAttributeList(String name, int type, int modifier, String value, String values, AttributeList atts)
AttributeList
를 작성해, 돌려줍니다.
name
- 속성 리스트의 이름
AttributeList
protected ContentModel defContentModel(int type, Object obj, ContentModel next)
type
- 새로운 컨텐츠 모델의 타입
ContentModel
public String toString()
Object
내의 toString
public static void putDTDHash(String name, DTD dtd)
public static DTD getDTD(String name) throws IOException
name
를 가지는 DTD 를 돌려줍니다. 그 이름의 DTD 가 존재하지 않는 경우는, 작성해 돌려줍니다. 이름에 포함되는 대문자는 소문자에 변환됩니다.
name
- DTD 의 이름
name
에 대응하는 DTD
IOException
public void read(DataInputStream in) throws IOException
in
- read원의 DataInputStream
IOException
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.