fr.inrialpes.opera.upsprofiles
Class UPSProfilesCreator
java.lang.Object
|
+--fr.inrialpes.opera.upsprofiles.UPSProfilesCreator
- public class UPSProfilesCreator
- extends java.lang.Object
This class allows to create different kinds of CC/PP profiles
- Author:
- Tayeb LEMLOUMA (Tayeb.Lemlouma@inrialpes.fr)
Constructor Summary |
UPSProfilesCreator(java.lang.String fileName,
java.lang.String profileTypeName,
java.lang.String C1,
java.lang.String C2)
Create a valid CC/PP profile file, with two CC/PP components. |
UPSProfilesCreator(java.lang.String fileName,
java.lang.String profileTypeName,
java.lang.String C1,
java.lang.String C2,
java.lang.String C3)
Create a valid CC/PP profile file, with three CC/PP components: Hardware Platform, Software Platform and Browser User Agent.
|
Method Summary |
static void |
main(java.lang.String[] args)
This main class is written for testing the UPSProfiles package.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UPSProfilesCreator
public UPSProfilesCreator(java.lang.String fileName,
java.lang.String profileTypeName,
java.lang.String C1,
java.lang.String C2,
java.lang.String C3)
- Create a valid CC/PP profile file, with three CC/PP components: Hardware Platform, Software Platform and Browser User Agent.
The created profile follows the UPS schema, and belongs to the profile type passed as argument.
- Parameters:
fileName
- The file name of the created profile.profileTypeName
- The type of the profile. Possible values: ClientProfile, DocumentInstanceProfile.C1
- 1st Util information (semantic depends to the kind of the profile)C2
- 2nd Util information (semantic depends to the kind of the profile)C3
- 3rd Util information (semantic depends to the kind of the profile)
UPSProfilesCreator
public UPSProfilesCreator(java.lang.String fileName,
java.lang.String profileTypeName,
java.lang.String C1,
java.lang.String C2)
- Create a valid CC/PP profile file, with two CC/PP components. The created profile follows the UPS schema,
and belongs to the profile type passed as argument.
- Parameters:
fileName
- The file name of the created profileprofileTypeName
- The type of the profile. Possible values: ResourceProfile, AdaptationMethodProfile and ResourceClientProfile.C1
- 1st Util information (semantic depends to the kind of the profile)C2
- 2nd Util information (semantic depends to the kind of the profile)
main
public static void main(java.lang.String[] args)
- This main class is written for testing the UPSProfiles package.
It creates five profiles in the directory given as argument, otherwise in the current directory.