Package edu.harvard.hul.ois.ots.schemas.TextMD

Examples of edu.harvard.hul.ois.ots.schemas.TextMD.CharacterInfo


        }
    }

    protected void attachCharacterInfo () {
        if (ci == null) {
            ci = new CharacterInfo ();
            textMD.addCharacterInfo(ci);
        }
    }
View Full Code Here


        XmlContentConverter conv = new XmlContentConverter ();
        TextMD tmd = (TextMD) conv.toTextMD (textElem);
       
        List<CharacterInfo> chinfos = tmd.getCharacterInfos();
        assertTrue (chinfos.size() == 1);
        CharacterInfo chinfo = chinfos.get(0);
        assertEquals ("US-ASCII", chinfo.getCharset());
        assertEquals ("LF", chinfo.getLinebreak ());
       
        List<MarkupBasis> mkbases = tmd.getMarkupBases();
        assertTrue (mkbases.size () == 1);
        MarkupBasis mkbas = mkbases.get(0);
        assertEquals ("HTML", mkbas.getValue());
View Full Code Here

TOP

Related Classes of edu.harvard.hul.ois.ots.schemas.TextMD.CharacterInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.