Class ComponentMatcher
- java.lang.Object
-
- com.opencloud.slee.upgrade.transformation.model.ComponentMatcher
-
public final class ComponentMatcher extends java.lang.Object
Matches 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 boolean
equals(java.lang.Object o)
StringMatcher
getName()
The matcher for the component name.StringMatcher
getVendor()
The matcher for the component vendor.StringMatcher
getVersion()
The matcher for the component version.int
hashCode()
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.String
toString()
-
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-