Class ComponentMatcher
- java.lang.Object
-
- com.opencloud.slee.upgrade.transformation.model.ComponentMatcher
-
public final class ComponentMatcher extends java.lang.ObjectMatches a SLEE component ID, such as a profile spec ID.
-
-
Constructor Summary
Constructors Constructor Description ComponentMatcher(StringMatcher name, StringMatcher vendor, StringMatcher version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)StringMatchergetName()The matcher for the component name.StringMatchergetVendor()The matcher for the component vendor.StringMatchergetVersion()The matcher for the component version.inthashCode()ResultAndWarnings<java.lang.Boolean>matches(java.lang.String name, java.lang.String vendor, java.lang.String version)Returns the result of matching the given component ID, along with any warnings.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ComponentMatcher
public ComponentMatcher(@Nonnull StringMatcher name, @Nonnull StringMatcher vendor, @Nonnull StringMatcher version)
-
-
Method Detail
-
matches
@Nonnull public ResultAndWarnings<java.lang.Boolean> matches(java.lang.String name, java.lang.String vendor, java.lang.String version)
Returns the result of matching the given component ID, along with any warnings.
-
getName
@Nonnull public StringMatcher getName()
The matcher for the component name.
-
getVendor
@Nonnull public StringMatcher getVendor()
The matcher for the component vendor.
-
getVersion
@Nonnull public StringMatcher getVersion()
The matcher for the component version.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-