Package org.zanata.model.po

Examples of org.zanata.model.po.HPotEntryData


        ExtensionSet<TextFlowExtension> extensions = from.getExtensions(true);
        if (enabledExtensions.contains(PotEntryHeader.ID)) {
            PotEntryHeader entryHeader =
                    extensions.findByType(PotEntryHeader.class);
            if (entryHeader != null) {
                HPotEntryData hEntryHeader = to.getPotEntryData();

                if (hEntryHeader == null) {
                    changed = true;
                    hEntryHeader = new HPotEntryData();
                    to.setPotEntryData(hEntryHeader);
                    log.debug("set potentryheader");
                }
                changed |=
                        transferFromPotEntryHeader(entryHeader, hEntryHeader,
View Full Code Here


    @Test
    public void testGetTransMemoryDetail() {
        HTextFlow hTextFlow =
                TestFixture.makeApprovedHTextFlow(1, sourceLocale);
        HPotEntryData potEntryData = new HPotEntryData();
        potEntryData.setContext("msgContext");
        hTextFlow.setPotEntryData(potEntryData);
        hTextFlow.getTargets().put(sourceLocale.getId(),
                addHTextFlowTarget(sourceLocale, hTextFlow, "admin"));
        setProjectAndIterationSlug(hTextFlow, "project", "master");
View Full Code Here

                "sourceContent can not be null");

        HTextFlow hTextFlow = new HTextFlow(document, resId, sourceContent);
        document.getTextFlows().add(hTextFlow);
        if (msgContext != null) {
            HPotEntryData potEntryData = new HPotEntryData();
            potEntryData.setContext(msgContext);
            hTextFlow.setPotEntryData(potEntryData);
        }
        if (sourceComment != null) {
            hTextFlow.setComment(new HSimpleComment(sourceComment));
        }
View Full Code Here

                        "targets", "history", "potEntryData");
        copy.setDocument(newDocument);

        // copy PotEntryData
        if (textFlow.getPotEntryData() != null) {
            HPotEntryData potEntryData = JPACopier.<HPotEntryData> copyBean(
                    textFlow.getPotEntryData(), "textFlow");
            copy.setPotEntryData(potEntryData);
        }
        return copy;
    }
View Full Code Here

TOP

Related Classes of org.zanata.model.po.HPotEntryData

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.