public class ChannelArch extends BaseDomainHelper
Constructor and Description |
---|
ChannelArch() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
cobblerArch()
Get the equivalent cobbler arch string for this ChannelArch, or null.
|
boolean |
equals(java.lang.Object other) |
ArchType |
getArchType() |
java.util.Set |
getCompatiblePackageArches()
Returns the set of package architectures compatible with this channel
architecture.
|
java.util.Set |
getCompatibleServerArches()
Returns the set of server architectures compatible with this channel
architecture.
|
java.lang.Long |
getId() |
java.lang.String |
getLabel() |
java.lang.String |
getName() |
int |
hashCode() |
boolean |
isCompatible(PackageArch arch)
Returns true if the given package architecture is compatible with this
channel architecture.
|
boolean |
isCompatible(ServerArch arch)
Returns true if the given server architecture is compatible with this
channel architecture.
|
void |
setArchType(ArchType a) |
void |
setCompatiblePackageArches(java.util.Set<PackageArch> arches) |
void |
setId(java.lang.Long i) |
void |
setLabel(java.lang.String l) |
void |
setName(java.lang.String n) |
java.lang.String |
toString() |
getCreated, getModified, setCreated, setModified
public ArchType getArchType()
public void setArchType(ArchType a)
a
- The archType to set.public java.lang.Long getId()
public void setId(java.lang.Long i)
i
- The id to set.public java.lang.String getLabel()
public void setLabel(java.lang.String l)
l
- The label to set.public java.lang.String getName()
public void setName(java.lang.String n)
n
- The name to set.public java.util.Set getCompatibleServerArches()
public java.util.Set getCompatiblePackageArches()
public boolean isCompatible(ServerArch arch)
arch
- Server architecture to be verified.public boolean isCompatible(PackageArch arch)
arch
- Package architecture to be verified.public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class BaseDomainHelper
public void setCompatiblePackageArches(java.util.Set<PackageArch> arches)
arches
- The compatible package arches to set.public java.lang.String cobblerArch()