public class ProfileIdentifier extends Object implements Comparable<ProfileIdentifier>
Constructor and Description |
---|
ProfileIdentifier(String name,
ProfileVersionIndicator versionIndicator,
SortedMap<String,String> parameters) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ProfileIdentifier other)
NOTE: Comparison is based on the textual representation of the profile
identifiers.
|
boolean |
contains(ProfileIdentifier other,
List<String> messages) |
ProfileIdentifier |
createCopy() |
boolean |
equals(Object other)
NOTE: Comparison is based on the textual representation of the profile
identifiers.
|
String |
getName() |
SortedMap<String,String> |
getParameter() |
ProfileVersionIndicator |
getVersionIndicator() |
boolean |
hasParameters() |
boolean |
hasVersionIndicator() |
String |
toString() |
public ProfileIdentifier(String name, ProfileVersionIndicator versionIndicator, SortedMap<String,String> parameters)
name
- versionIndicator;
- can be null
parameters
- parameters defined for the profile; can be null
if no parameters are definedownerName
- public SortedMap<String,String> getParameter()
null
if no
value is presentpublic String getName()
public ProfileVersionIndicator getVersionIndicator()
null
if no version was specified (meaning that the profile identifier
applies to all profiles)public boolean contains(ProfileIdentifier other, List<String> messages)
other
- messages
- List to store the reason(s) why this identifier does not
contain the other identifier; can be nullpublic ProfileIdentifier createCopy()
public boolean hasVersionIndicator()
public boolean hasParameters()
true
if one or more parameters are defined for the
profile, else false
public boolean equals(Object other)
equals
in class Object
Object.equals(java.lang.Object)
public int compareTo(ProfileIdentifier other)
compareTo
in interface Comparable<ProfileIdentifier>
Comparable.compareTo(java.lang.Object)
Copyright © 2017. All rights reserved.