com.ibm.ram.repository.web
Class AttributeUtil

java.lang.Object
  extended by com.ibm.ram.repository.web.AttributeUtil

public class AttributeUtil
extends java.lang.Object

Utility class for working with custom attributes.

Since:
7.1.1

Constructor Summary
AttributeUtil()
           
 
Method Summary
static com.ibm.ram.common.emf.Attribute getAttribute(com.ibm.ram.common.util.ManifestAccessor.CustomAttribute ca)
           
static java.util.Map getAttributeConfig(com.ibm.ram.common.util.ManifestAccessor.CustomAttribute attribute)
           
static java.lang.String getAttributeDisplayValue(com.ibm.ram.common.util.ManifestAccessor.CustomAttribute attribute, boolean useDefault)
           
static java.lang.String getAttributeLabel(com.ibm.ram.common.util.ManifestAccessor.CustomAttribute attribute, boolean useDefault)
           
static java.lang.Boolean getAttributeValueAsBoolean(com.ibm.ram.common.util.ManifestAccessor.CustomAttribute attribute, boolean useDefault)
          Returns the value of the given attribute as a Boolean object.
static java.util.Date getAttributeValueAsDate(com.ibm.ram.common.util.ManifestAccessor.CustomAttribute attribute, boolean useDefault)
           
static java.lang.Integer getAttributeValueAsInteger(com.ibm.ram.common.util.ManifestAccessor.CustomAttribute attribute, boolean useDefault)
           
static com.ibm.ram.repository.security.IUserInformation getAttributeValueAsUser(com.ibm.ram.common.util.ManifestAccessor.CustomAttribute attribute, boolean useDefault)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeUtil

public AttributeUtil()
Method Detail

getAttributeValueAsBoolean

public static java.lang.Boolean getAttributeValueAsBoolean(com.ibm.ram.common.util.ManifestAccessor.CustomAttribute attribute,
                                                           boolean useDefault)
Returns the value of the given attribute as a Boolean object. If the value is null and useDefault is true,


getAttributeValueAsDate

public static java.util.Date getAttributeValueAsDate(com.ibm.ram.common.util.ManifestAccessor.CustomAttribute attribute,
                                                     boolean useDefault)

getAttributeValueAsInteger

public static java.lang.Integer getAttributeValueAsInteger(com.ibm.ram.common.util.ManifestAccessor.CustomAttribute attribute,
                                                           boolean useDefault)

getAttributeLabel

public static java.lang.String getAttributeLabel(com.ibm.ram.common.util.ManifestAccessor.CustomAttribute attribute,
                                                 boolean useDefault)

getAttributeDisplayValue

public static java.lang.String getAttributeDisplayValue(com.ibm.ram.common.util.ManifestAccessor.CustomAttribute attribute,
                                                        boolean useDefault)

getAttributeValueAsUser

public static com.ibm.ram.repository.security.IUserInformation getAttributeValueAsUser(com.ibm.ram.common.util.ManifestAccessor.CustomAttribute attribute,
                                                                                       boolean useDefault)

getAttributeConfig

public static java.util.Map getAttributeConfig(com.ibm.ram.common.util.ManifestAccessor.CustomAttribute attribute)
                                        throws com.ibm.ram.repository.core.AssetTypeManager.AttributeNotFoundException
Throws:
com.ibm.ram.repository.core.AssetTypeManager.AttributeNotFoundException

getAttribute

public static com.ibm.ram.common.emf.Attribute getAttribute(com.ibm.ram.common.util.ManifestAccessor.CustomAttribute ca)
                                                     throws com.ibm.ram.repository.core.AssetTypeManager.AttributeNotFoundException
Throws:
com.ibm.ram.repository.core.AssetTypeManager.AttributeNotFoundException