com.redhat.rhn.domain.channel
Class ChannelArch

java.lang.Object
  extended by com.redhat.rhn.domain.BaseDomainHelper
      extended by com.redhat.rhn.domain.channel.ChannelArch

public class ChannelArch
extends BaseDomainHelper

ChannelArch


Constructor Summary
ChannelArch()
           
 
Method Summary
 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 setId(java.lang.Long i)
           
 void setLabel(java.lang.String l)
           
 void setName(java.lang.String n)
           
 java.lang.String toString()
          
 
Methods inherited from class com.redhat.rhn.domain.BaseDomainHelper
getCreated, getModified, setCreated, setModified
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChannelArch

public ChannelArch()
Method Detail

getArchType

public ArchType getArchType()
Returns:
Returns the archType.

setArchType

public void setArchType(ArchType a)
Parameters:
a - The archType to set.

getId

public java.lang.Long getId()
Returns:
Returns the id.

setId

public void setId(java.lang.Long i)
Parameters:
i - The id to set.

getLabel

public java.lang.String getLabel()
Returns:
Returns the label.

setLabel

public void setLabel(java.lang.String l)
Parameters:
l - The label to set.

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String n)
Parameters:
n - The name to set.

getCompatibleServerArches

public java.util.Set getCompatibleServerArches()
Returns the set of server architectures compatible with this channel architecture.

Returns:
the set of server architectures compatible with this channel architecture.

getCompatiblePackageArches

public java.util.Set getCompatiblePackageArches()
Returns the set of package architectures compatible with this channel architecture.

Returns:
the set of package architectures compatible with this channel architecture.

isCompatible

public boolean isCompatible(ServerArch arch)
Returns true if the given server architecture is compatible with this channel architecture. False if the server architecture is null or not compatible.

Parameters:
arch - Server architecture to be verified.
Returns:
true if compatible; false if null or not compatible.

isCompatible

public boolean isCompatible(PackageArch arch)
Returns true if the given package architecture is compatible with this channel architecture. False if the package architecture is null or not compatible.

Parameters:
arch - Package architecture to be verified.
Returns:
true if compatible; false if null or not compatible.

equals

public boolean equals(java.lang.Object other)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object