Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import java.util.*;

import org.w3c.dom.*;

public class Main {
    /**
     * Method for handling serialization of class objects.
     * @author Tristan Bepler
     */
    private static boolean writeSpecialCaseObjectIsClass(Object o, Element cur, Document doc,
            List<Object> written) {
        if (o instanceof Class) {
            cur.setTextContent(((Class) o).getName());
            return true;
        }
        return false;
    }
}