JavaTM Platform
Standard Ed. 6

javax.xml.bind.annotation.adapters
클래스 CollapsedStringAdapter

java.lang.Object 
  상위를 확장 javax.xml.bind.annotation.adapters.XmlAdapter <String ,String >
      상위를 확장 javax.xml.bind.annotation.adapters.CollapsedStringAdapter


public class CollapsedStringAdapter
extends XmlAdapter <String ,String >

xs:token 와 그 파생형을 처리하는 편입 XmlAdapter

이 어댑터는, 선두와 말미의 공백을 삭제한 후, 탭, CR, LF, SP 의 순서를 1 개의 공백 문자 「 」에 절약합니다.

도입된 버젼:
JAXB 2.0

생성자 의 개요
CollapsedStringAdapter ()
           
 
메소드의 개요
protected static boolean isWhiteSpace (char ch)
          지정된 문자가 공백 문자인 경우, true 를 돌려줍니다.
 String marshal (String  s)
          아무것도 하지 않습니다.
 String unmarshal (String  text)
          파라미터로서 주어진 캐릭터 라인의 선두와 말미의 공백을 삭제한 후, 탭, CR, LF, SP 의 순서를 1 개의 공백 문자 「 」에 절약합니다.
 
클래스 java.lang. Object 로부터 상속된 메소드
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

생성자 의 상세

CollapsedStringAdapter

public CollapsedStringAdapter()
메소드의 상세

unmarshal

public String  unmarshal(String  text)
파라미터로서 주어진 캐릭터 라인의 선두와 말미의 공백을 삭제한 후, 탭, CR, LF, SP 의 순서를 1 개의 공백 문자 「 」에 절약합니다.

정의:
클래스 XmlAdapter <String ,String > 내의 unmarshal
파라미터:
text - 변환하는 값. null 도 가능

marshal

public String  marshal(String  s)
아무것도 하지 않습니다. 단지 파라미터로서 주어진 것과 같은 캐릭터 라인을 돌려줍니다.

정의:
클래스 XmlAdapter <String ,String > 내의 marshal
파라미터:
s - 변환하는 값. null 도 가능

isWhiteSpace

protected static boolean isWhiteSpace(char ch)
지정된 문자가 공백 문자인 경우, true 를 돌려줍니다.


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 도 참조해 주세요.