Package cz.metacentrum.perun.core.api
Class AttributeDefinition
java.lang.Object
cz.metacentrum.perun.core.api.PerunBean
cz.metacentrum.perun.core.api.Auditable
cz.metacentrum.perun.core.api.AttributeDefinition
- All Implemented Interfaces:
- Serializable,- Comparable<PerunBean>
- Direct Known Subclasses:
- Attribute
This class represents definition of attribute. All attributes comes from some definition. Attribute definition is
 attribute without connection to some object.
- Author:
- Slavek Licehammer invalid input: '<'glory@ics.muni.cz>
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionAttributeDefinition(AttributeDefinition attributeDefinition) Copy constructor.
- 
Method SummaryModifier and TypeMethodDescriptionvoidCompares this instance to other instance, throws exception if they are different.intbooleanGet the first part from the friendlyName if the friendlyName contains parameter friendlyName = name:param.Returns name of the entity from the attribute name (urn:perun:[entity]:attribute-def). e.g. member, facility, userReturns parameter of the friendly name, e.g. fiendlyName=name:param.getName()Returns the whole attribute name including namespacegetType()booleaninthashCode()booleanisUnique()voidsetDescription(String description) voidsetDisplayName(String displayName) voidsetFriendlyName(String friendlyName) voidsetNamespace(String namespace) voidvoidsetUnique(boolean unique) voidsetWritable(boolean writable) toString()Methods inherited from class cz.metacentrum.perun.core.api.AuditablegetCreatedAt, getCreatedBy, getCreatedByUid, getModifiedAt, getModifiedBy, getModifiedByUid, setCreatedAt, setCreatedBy, setCreatedByUid, setModifiedAt, setModifiedBy, setModifiedByUidMethods inherited from class cz.metacentrum.perun.core.api.PerunBeangetBeanName, getId, setId
- 
Constructor Details- 
AttributeDefinitionpublic AttributeDefinition()
- 
AttributeDefinitionCopy constructor. New attribute will be exactly the same as attribute from parameter.- Parameters:
- attributeDefinition- attribute to copy
 
 
- 
- 
Method Details- 
checkEqualityCompares this instance to other instance, throws exception if they are different. Used to check that Attribute has correct AttributeDefinition fields.- Parameters:
- a- other instance to be checked for equality
- Throws:
- ConsistencyErrorException- thrown if any of class attributes differ
 
- 
compareTo- Specified by:
- compareToin interface- Comparable<PerunBean>
- Overrides:
- compareToin class- PerunBean
 
- 
equals
- 
getBaseFriendlyNameGet the first part from the friendlyName if the friendlyName contains parameter friendlyName = name:param. Otherwise, returns firendlyName.
- 
getDescription
- 
setDescription
- 
getDisplayName
- 
setDisplayName
- 
getEntityReturns name of the entity from the attribute name (urn:perun:[entity]:attribute-def). e.g. member, facility, user
- 
getFriendlyName
- 
setFriendlyName
- 
getFriendlyNameParameterReturns parameter of the friendly name, e.g. fiendlyName=name:param.
- 
getNameReturns the whole attribute name including namespace- Returns:
- attribute namespace + friendly name
 
- 
getNamespace
- 
setNamespace
- 
getType
- 
setType
- 
getWritablepublic boolean getWritable()
- 
setWritablepublic void setWritable(boolean writable) 
- 
hashCodepublic int hashCode()
- 
isUniquepublic boolean isUnique()
- 
setUniquepublic void setUnique(boolean unique) 
- 
serializeToString- Overrides:
- serializeToStringin class- Auditable
 
- 
toString
 
-