FileDocCategorySizeDatePackage
Studio.javaAPI DocExample663Sun Nov 03 21:10:58 GMT 2002com.mediamania.content

Studio.java

package com.mediamania.content;

import java.util.Set;
import java.util.HashSet;
import java.util.Collections;

public class Studio {
    private String  name;
    private Set     content; // MediaContent
    
    private Studio()
    { }    
    public Studio(String studioName) {
        name = studioName;
        content = new HashSet();
    }    
    public String getName() {
        return name;
    }    
    public Set getContent() {
        return Collections.unmodifiableSet(content);
    }
    public void addContent(MediaContent mc) {
        content.add(mc);
    }
    public void removeContent(MediaContent mc) {
        content.remove(mc);
    }
}