Package com.rometools.rome.feed

Examples of com.rometools.rome.feed.CopyFrom


                if (value instanceof Date) { // because Date it is not inmutable
                    value = (T) ((Date) value).clone();
                }
            } else { // it goes CopyFrom
                if (value instanceof CopyFrom) {
                    final CopyFrom source = (CopyFrom) value;
                    CopyFrom target = createInstance(source.getInterface());
                    if (target == null) {
                        target = (CopyFrom) value.getClass().newInstance();
                    }
                    target.copyFrom(source);
                    value = (T) target;
                } else {
                    throw new Exception("unsupported class for 'copyFrom' " + value.getClass());
                }
            }
View Full Code Here

TOP

Related Classes of com.rometools.rome.feed.CopyFrom

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.