JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.text.html.parser
Ŭ·¡½º ContentModel

java.lang.Object 
  »óÀ§¸¦ È®Àå javax.swing.text.html.parser.ContentModel
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
Serializable

public final class ContentModel
extends Object
implements Serializable

ÄÁÅÙÃ÷ ¸ðµ¨ÀÇ Ç¥ÇöÀÔ´Ï´Ù. ÄÁÅÙÃ÷ ¸ðµ¨Àº ±âº»ÀûÀ¸·Î Á¦ÇÑÀûÀÎ BNF ½ÄÀÔ´Ï´Ù. ÀÌ°ÍÀº ÄÁÅÙÃ÷ ¸ðµ¨Àº °áÁ¤¼ºÀ» °¡ÁöÁö ¾ÊÀ¸¸é ¾È µÈ´Ù°í ÇÏ´Â ÀÌÀ¯·ÎºÎÅÍÀÇ Á¦ÇÑÀÔ´Ï´Ù. Áï, ÄÁÅÙÃ÷ ¸ðµ¨À» À¯ÇÑ »óÅ ÀÚµ¿ Àå°ªÀ¸·Î Ç¥ÇöÇÒ ÇÊ¿ä´Â ¾ø½À´Ï´Ù.

ÀÚ¼¼ÇÑ ³»¿ëÀº ¡¸SGML handbook¡¹ÀÇ 556 ÆäÀÌÁöÀÇ ºÎ·Ï H (Annex H)¸¦ ÂüÁ¶ÇϽʽÿÀ.


ÇÊµå °³¿ä
 Object content
          ÄÁÅÙÃ÷ÀÔ´Ï´Ù.
 ContentModel next
          ', '½Ä, '|' ½Ä, ȤÀº '&'½Ä¾È¿¡ ÀÖ´Â ´ÙÀ½ÀÇ ÄÁÅÙÃ÷ ¸ðµ¨ÀÔ´Ï´Ù.
 int type
          Å¸ÀÔÀÔ´Ï´Ù.
 
»ý¼ºÀÚ °³¿ä
ContentModel ()
           
ContentModel (Element  content)
          ¿ä¼Ò¿¡ ´ëÇÑ ÄÜÅÙÆ®¸ð µ¨À» ÀÛ¼ºÇÕ´Ï´Ù.
ContentModel (int type, ContentModel  content)
          Æ¯Á¤ÀÇ Å¸ÀÔÀÇ ÄÁÅÙÃ÷ ¸ðµ¨À» ÀÛ¼ºÇÕ´Ï´Ù.
ContentModel (int type, Object  content, ContentModel  next)
          Æ¯Á¤ÀÇ Å¸ÀÔÀÇ ÄÁÅÙÃ÷ ¸ðµ¨À» ÀÛ¼ºÇÕ´Ï´Ù.
 
¸Þ¼­µå °³¿ä
 boolean empty ()
          ÄÁÅÙÃ÷ ¸ðµ¨ÀÌ ºñ¾îÀÖ´Â ÀÔ Èû½ºÆ®¸²°ú ÀÏÄ¡ÇÏ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 Element first ()
          ´ÙÀ½ÀÇ ¿ä¼Ò¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 boolean first (Object  token)
          token ÇÏÁö¸¸ ÀÔ·Â ½ºÆ®¸²ÀÇ ÃÖÃÊÀÇ ÅäÅ«ÀÌ µÇ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 void getElements (Vector <Element > elemVec)
          ÀÌ contentModel ÀϺÎÀÎ ¿ä¼ÒÀÇ ¸®½ºÆ®¸¦ »ç¿ëÇØ, elemVec¸¦ °»½ÅÇÕ´Ï´Ù.
 String toString ()
          Ä³¸¯ÅÍ ¶óÀÎÀ¸·Î º¯È¯ÇÕ´Ï´Ù.
 
Ŭ·¡½º java.lang. Object (À¸)·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

ÇʵåÀÇ »ó¼¼

type

public int type
ŸÀÔÀÔ´Ï´Ù. '*', '? ', '+', ', ', '|', '&'ÀÇ ¾î¶² °ÍÀΰ¡ÀÔ´Ï´Ù.


content

public Object  content
ÄÁÅÙÃ÷ÀÔ´Ï´Ù. Element ¶Ç´Â ContentModel ÀÔ´Ï´Ù.


next

public ContentModel  next
', '½Ä, '|'½Ä, ȤÀº '&'½Ä¾È¿¡ ÀÖ´Â ´ÙÀ½ÀÇ ÄÁÅÙÃ÷ ¸ðµ¨ÀÔ´Ï´Ù.

»ý¼ºÀÚ »ó¼¼

ContentModel

public ContentModel()

ContentModel

public ContentModel(Element  content)
¿ä¼Ò¿¡ ´ëÇÑ ÄÁÅÙÃ÷ ¸ðµ¨À» ÀÛ¼ºÇÕ´Ï´Ù.


ContentModel

public ContentModel(int type, 
ContentModel  content)
ƯÁ¤ÀÇ Å¸ÀÔÀÇ ÄÁÅÙÃ÷ ¸ðµ¨À» ÀÛ¼ºÇÕ´Ï´Ù.


ContentModel

public ContentModel(int type, 
Object  content,
ContentModel  next)
ƯÁ¤ÀÇ Å¸ÀÔÀÇ ÄÁÅÙÃ÷ ¸ðµ¨À» ÀÛ¼ºÇÕ´Ï´Ù.

¸Þ¼­µåÀÇ »ó¼¼

empty

public boolean empty()
ÄÁÅÙÃ÷ ¸ðµ¨ÀÌ ºñ¾îÀÖ´Â ÀÔ·Â ½ºÆ®¸²°ú ÀÏÄ¡ÇÏ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.


getElements

public void getElements(Vector <Element > elemVec)
ÀÌ contentModel ÀϺÎÀÎ ¿ä¼ÒÀÇ ¸®½ºÆ®¸¦ »ç¿ëÇØ, elemVec¸¦ °»½ÅÇÕ´Ï´Ù.


first

public boolean first(Object  token)
token°¡ ÀÔ·Â ½ºÆ®¸²ÀÇ ÃÖÃÊÀÇ ÅäÅ«ÀÌ µÇ´Â °æ¿ì¿¡ true¸¦ ¸®ÅÏÇÕ´Ï´Ù.


first

public Element  first()
´ÙÀ½ÀÇ ¿ä¼Ò¸¦ ¸®ÅÏÇÕ´Ï´Ù.


toString

public String  toString()
ij¸¯ÅÍ ¶óÀÎÀ¸·Î º¯È¯ÇÕ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º Object ³»ÀÇ toString
¹Ýȯ°ª:
ÀÌ °´Ã¼ÀÇ Ä³¸¯ÅÍ ¶óÀΠǥÇö

JavaTM 2 Platform
Standard Ed. 5.0

¹Ù ±×ÀÇ º¸°í¿Í ±â´ÉÀÇ ¸®Äù½ºÆ®
¶ÇÇÑ ÀÚ¼¼ÇÑ API ·¹ÆÛ·±½º ¹× °³¹ßÀÚ ¹®¼­¿¡ ´ëÇؼ­´Â Java 2 SDK SE °³¹ßÀÚ¿ë ¹®¼­¸¦ ÂüÁ¶ÇϽʽÿÀ. °³¹ßÀÚÀü¿ëÀÇ »ó¼¼ÇÑ Çؼ³, °³³äÀÇ °³¿ä, ¿ë¾îÀÇ Á¤ÀÇ, ¹ö±×ÀÇ È¸ÇÇÃ¥ ¹× ÄÚµå ½Ç·Ê°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.