|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
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)
ÁöÁ¤ÇÑ AttributeList ¿¡ ÀÏÄ¡ÇÏ´Â 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 ij¸¯ÅÍ ¶óÀΠǥÇöÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Ŭ·¡½º 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)
name
, 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)
AttributeList
¿¡ ÀÏÄ¡ÇÏ´Â Element
¸¦ ¸®ÅÏÇÕ´Ï´Ù. Á¸ÀçÇÏÁö ¾Ê´Â °æ¿ì´Â »õ·Î¿î 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
- ÀÐÀ» DataInputStream
IOException
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.