alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

/*
 * TestTargetMoid.java
 *
 * Created on October 14, 2003, 1:34 PM
 */

package org.netbeans.tests.j2eeserver.plugin.jsr88;

import javax.enterprise.deploy.spi.*;
import javax.enterprise.deploy.shared.*;
import javax.enterprise.deploy.model.*;

/**
 *
 * @author  nn136682
 */
public class TestTargetMoid implements TargetModuleID {
    Target target;
    String moduleID;
    TestTargetMoid parent;
    TestTargetMoid[] children;
    ModuleType type;
    
    /** Creates a new instance of TestTargetMoid */
    public TestTargetMoid(Target target, String module, ModuleType type) {
        this.target = target;
        this.moduleID = module.replace('.', '_');
        this.type = type; 
    }
    public TargetModuleID[] getChildTargetModuleID() {
        return children;
    }
    
    public ModuleType getModuleType() { return type; }
    
    public String getModuleID() {
        return moduleID;
    }
    
    public TargetModuleID getParentTargetModuleID() {
        return parent;
    }
    
    public Target getTarget() {
        return target;
    }
    
    public String getWebURL() {
        return null;
    }
    
    public String toString() {
        return "TestPlugin:"+target.getName()+":"+moduleID;
    }
    
    public TestTargetMoid getParent() { return parent; }
    public String getModuleUrl() { return moduleID; }
}
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.