JavaTM Platform
Standard Ed. 6

javax.swing.text.html.parser
클래스 Element

java.lang.Object 
  상위를 확장 javax.swing.text.html.parser.Element
모든 구현된 인터페이스:
Serializable , DTDConstants


public final class Element
extends Object
implements DTDConstants , Serializable

ELEMENT 원가요소를 사용해 DTD 에 기술되었던 대로의 요소입니다. 이것은, 태그에 불가결한 기술입니다. 타입, 컨텐츠 모델, 속성, 속성의 형태등을 기술하고 있습니다. 이 기술은, 문서를 올바르게 해석하기 위해서 Parser 에 의해 사용됩니다.

관련 항목:
DTD , AttributeList

필드의 개요
 AttributeList atts
           
 ContentModel content
           
 Object data
          사용자 데이터를 포함하는 필드입니다.
 BitSet exclusions
           
 BitSet inclusions
           
 int index
           
 String name
           
 boolean oEnd
           
 boolean oStart
           
 int type
           
 
인터페이스 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
 
메소드의 개요
 AttributeList getAttribute (String  name)
          속성을 이름으로 가져옵니다.
 AttributeList getAttributeByValue (String  name)
          속성을 값으로 가져옵니다.
 AttributeList getAttributes ()
          속성을 가져옵니다.
 ContentModel getContent ()
          컨텐츠 모델을 돌려줍니다.
 int getIndex ()
          인덱스를 가져옵니다.
 String getName ()
          요소의 이름을 가져옵니다.
 int getType ()
          형태를 가져옵니다.
 boolean isEmpty ()
          빈 상태(empty)인가 어떤가를 판정합니다.
static int name2type (String  nm)
           
 boolean omitEnd ()
          종료 태그를 생략 할 수 있는 경우에 true 를 돌려줍니다.
 boolean omitStart ()
          개시 태그를 생략 할 수 있는 경우에 true 를 돌려줍니다.
 String toString ()
          캐릭터 라인으로 변환합니다.
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait
 

필드의 상세

index

public int index

name

public String  name

oStart

public boolean oStart

oEnd

public boolean oEnd

inclusions

public BitSet  inclusions

exclusions

public BitSet  exclusions

type

public int type

content

public ContentModel  content

atts

public AttributeList  atts

data

public Object  data
사용자 데이터를 포함하는 필드입니다. 대부분의 경우, 스타일 시트의 포함에 사용됩니다.

메소드의 상세

getName

public String  getName()
요소의 이름을 가져옵니다.


omitStart

public boolean omitStart()
개시 태그를 생략 할 수 있는 경우에 true 를 돌려줍니다.


omitEnd

public boolean omitEnd()
종료 태그를 생략 할 수 있는 경우에 true 를 돌려줍니다.


getType

public int getType()
형태를 가져옵니다.


getContent

public ContentModel  getContent()
컨텐츠 모델을 돌려줍니다.


getAttributes

public AttributeList  getAttributes()
속성을 가져옵니다.


getIndex

public int getIndex()
인덱스를 가져옵니다.


isEmpty

public boolean isEmpty()
빈 상태(empty)인가 어떤가를 판정합니다.


toString

public String  toString()
캐릭터 라인으로 변환합니다.

오버라이드(override):
클래스 Object 내의 toString
반환값:
이 객체의 캐릭터 라인 표현

getAttribute

public AttributeList  getAttribute(String  name)
속성을 이름으로 가져옵니다.


getAttributeByValue

public AttributeList  getAttributeByValue(String  name)
속성을 값으로 가져옵니다.


name2type

public static int name2type(String  nm)

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.