COPYRIGHT osid.SidImplementationLicense
ALWAYS_PACKAGE eas.util

BEGIN
    CLASS Type
    EXTENDS org.osid.shared.Type
    METHOD public Type(String authority, String domain, String keyword, String description):super(authority,domain,keyword,description)
    METHOD public Type(String authority, String domain, String keyword):super(authority,domain,keyword)
END

BEGIN
    CLASS UtilityServices
    
    DECLARE private static java.util.Properties localizationProperties = null
    DECLARE private static eas.Settings settings = eas.Settings.getInstance()
    DECLARE private static eas.ui.GUIServices guiServices = eas.ui.GUIServices.getInstance()

    MERGE_FROM UtilityServices.merge
    MERGE MergeLocalize:METHOD public static String localize(String text)
    MERGE MergeStringToType:METHOD public static org.osid.shared.Type stringToType(String typeString)
    MERGE MergeTypeToString:METHOD public static String typeToString(org.osid.shared.Type type)
    MERGE MergeConvertSpacesForURL:METHOD public static String convertSpacesForURL(String s)
END

BEGIN
    CLASS SharedProperties
    IMPLEMENTS org.osid.shared.Properties
    THROWS org.osid.shared.SharedException
    
    DECLARE private java.util.Map map = new java.util.HashMap();
    DECLARE private org.osid.shared.Type type = new Type("mit.edu","shared","empty")

    MERGE_FROM shared.merge
    METHOD public SharedProperties()
    MERGE MergePropertiesConstructor:METHOD public SharedProperties(java.util.Map map, org.osid.shared.Type type)
    MERGE MergePropertiesGetKeys:METHOD org.osid.shared.ObjectIterator getKeys()
    MERGE MergePropertiesGetProperty:METHOD java.io.Serializable getProperty(java.io.Serializable key)
    MERGE MergePropertiesGetType:METHOD org.osid.shared.Type getType()
END

BEGIN
    CLASS ObjectIterator
    IMPLEMENTS org.osid.shared.ObjectIterator
    THROWS org.osid.shared.SharedException
    
    DECLARE private java.util.Vector vector = new java.util.Vector()
    DECLARE private int i = 0
    CONSTRUCTOR java.util.Vector vector
    CONSTRUCTOR_LINE this.vector = vector

    MERGE_FROM shared.merge
    METHOD boolean hasNextObject():return i < vector.size()
    MERGE MergeObjectIteratorNext:METHOD java.io.Serializable nextObject()
END
