Entity¶
-
class
Entity(*args)[source]¶ Bases:
objectThe Entity class is an identification of a persistant entity in the ALMA archive. It easily maps onto an EntityT object in the ACS system entities.
Adapted from the c++ and Java implementations of this class.
Methods Summary
equals(entity)Returns True if entity is an Entity and it’s values are equal to this Entity
fromBin(ein)Create and return an Entity from an EndianInput instance.
getEntityId()getEntityIdEncrypted()getEntityTypeName()getEntityVersion()getInstance(stringList)This mirrors similar functions in the other types.
getInstanceVersion()isNull()Return True if the entityId is null
setEntityId(entityId)Set the entityId, an EntityId or a valid string can be used.
setEntityIdEncrypted(entityIdEncrypted)setEntityTypeName(entityTypeName)setEntityVersion(entityVersion)setFromXML(xmlString)setInstanceVersion(instanceVersion)toBin(eout)Write this Entity out to an EndianOutput instance.
toXML()Return the values of this Entity as an XML-formatted string.
Methods Documentation
-
equals(entity)[source]¶ Returns True if entity is an Entity and it’s values are equal to this Entity
-