Class Property
- java.lang.Object
-
- es.bsc.dataclay.util.MgrObject<PropertyID>
-
- es.bsc.dataclay.util.management.classmgr.Property
-
- All Implemented Interfaces:
Comparable<Property>
public final class Property extends MgrObject<PropertyID> implements Comparable<Property>
This class represents a Property.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAnnotation(Annotation annotation)
Add an annotation to the propertyvoid
addLanguageDepInfo(LanguageDependantPropertyInfo langInfo)
Add language dependant informationint
compareTo(Property other)
boolean
equals(Object t)
String
getAfterUpdate()
List<Annotation>
getAnnotations()
Get annotationsString
getBeforeUpdate()
String
getClassName()
Get classNameImplementationID
getGetterImplementationID()
Get the Property::getterImplementationIDOperationID
getGetterOperationID()
Get the Property::getterOperationIDboolean
getInMaster()
JavaPropertyInfo
getJavaPropertyInfo()
Get Java language-dependant information of the propertyMap<CommonMessages.Langs,LanguageDependantPropertyInfo>
getLanguageDepInfos()
Get the Property::languageDepInfosMetaClassID
getMetaClassID()
Get the Property::metaClassIDString
getName()
Get the name of this PropertyString
getNamespace()
Get namespaceNamespaceID
getNamespaceID()
Get the Property::namespaceIDint
getPosition()
Get the Property::positionPythonPropertyInfo
getPythonPropertyInfo()
Get Python language-dependant information of the propertyImplementationID
getSetterImplementationID()
Get setterImplementationIDOperationID
getSetterOperationID()
Get the Property::setterOperationIDType
getType()
Get the TypeID of this PropertyImplementationID
getUpdateImplementationID()
Get updateImplementationIDOperationID
getUpdateOperationID()
Get the Property::updateOperationIDint
hashCode()
boolean
isReplicated()
void
setAfterUpdate(String afterUpdate)
void
setAnnotations(List<Annotation> annotations)
Set annotationsvoid
setBeforeUpdate(String beforeUpdate)
void
setClassName(String newclassName)
Set classNamevoid
setGetterImplementationID(ImplementationID newGetterImplementationID)
Set the Property::getterImplementationIDvoid
setGetterOperationID(OperationID newgetterOperationID)
Set the Property::getterOperationIDvoid
setInMaster(boolean inMaster)
void
setLanguageDepInfos(Map<CommonMessages.Langs,LanguageDependantPropertyInfo> newlanguageDepInfos)
Set the Property::languageDepInfosvoid
setMetaClassID(MetaClassID newmetaClassID)
Set the Property::metaClassIDvoid
setName(String newname)
Set the Property::name of this Propertyvoid
setNamespace(String newnamespace)
Set namespacevoid
setNamespaceID(NamespaceID newnamespaceID)
Set the Property::namespaceIDvoid
setPosition(int newPosition)
Sets the Property::positionvoid
setSetterImplementationID(ImplementationID newsetterImplementationID)
Set setterImplementationIDvoid
setSetterOperationID(OperationID newsetterOperationID)
Set the Property::setterOperationIDvoid
setType(Type newtype)
Set the Property::typevoid
setUpdateImplementationID(ImplementationID newUpdateImplementationID)
Set updateImplementationIDvoid
setUpdateOperationID(OperationID newUpdateOperationID)
Set the Property::updateOperationIDString
toString()
-
Methods inherited from class es.bsc.dataclay.util.MgrObject
getDataClayID, setDataClayID
-
-
-
-
Constructor Detail
-
Property
public Property()
Creates an empty Property
-
Property
public Property(int newposition, String newname, Type newtype, String newnamespace, String newclassName)
Property constructor- Parameters:
newposition
- Position of the propertynewname
- Name of the propertynewtype
- Type of the propertynewclassName
- Name of the MetaClass containing the Propertynewnamespace
- Name of the namespace in which the property has been created
-
-
Method Detail
-
getName
public String getName()
Get the name of this Property- Returns:
- Property::name of container Property.
-
setName
public void setName(String newname)
Set the Property::name of this Property- Parameters:
newname
- New name to be set
-
getType
public Type getType()
Get the TypeID of this Property- Returns:
- Property::typeID of container Property.
-
setType
public void setType(Type newtype)
Set the Property::type- Parameters:
newtype
- New Type to set of this Property.
-
getGetterOperationID
public OperationID getGetterOperationID()
Get the Property::getterOperationID- Returns:
- the getterOperationID
-
setGetterOperationID
public void setGetterOperationID(OperationID newgetterOperationID)
Set the Property::getterOperationID- Parameters:
newgetterOperationID
- the getterOperationID to set
-
getSetterOperationID
public OperationID getSetterOperationID()
Get the Property::setterOperationID- Returns:
- the setterOperationID
-
setSetterOperationID
public void setSetterOperationID(OperationID newsetterOperationID)
Set the Property::setterOperationID- Parameters:
newsetterOperationID
- the setterOperationID to set
-
getGetterImplementationID
public ImplementationID getGetterImplementationID()
Get the Property::getterImplementationID- Returns:
- the getterImplementationID
-
setGetterImplementationID
public void setGetterImplementationID(ImplementationID newGetterImplementationID)
Set the Property::getterImplementationID- Parameters:
newGetterImplementationID
- the getterImplementationID to set
-
getMetaClassID
public MetaClassID getMetaClassID()
Get the Property::metaClassID- Returns:
- the metaClassID
-
setMetaClassID
public void setMetaClassID(MetaClassID newmetaClassID)
Set the Property::metaClassID- Parameters:
newmetaClassID
- the metaClassID to set
-
getPosition
public int getPosition()
Get the Property::position- Returns:
- The position of the property
-
setPosition
public void setPosition(int newPosition)
Sets the Property::position- Parameters:
newPosition
- the position to be set
-
compareTo
public int compareTo(Property other)
- Specified by:
compareTo
in interfaceComparable<Property>
-
getLanguageDepInfos
public Map<CommonMessages.Langs,LanguageDependantPropertyInfo> getLanguageDepInfos()
Get the Property::languageDepInfos- Returns:
- the languageDepInfos
-
getJavaPropertyInfo
public JavaPropertyInfo getJavaPropertyInfo()
Get Java language-dependant information of the property- Returns:
- Java language-dependant information of the property
-
getPythonPropertyInfo
public PythonPropertyInfo getPythonPropertyInfo()
Get Python language-dependant information of the property- Returns:
- Python language-dependant information of the property
-
setLanguageDepInfos
public void setLanguageDepInfos(Map<CommonMessages.Langs,LanguageDependantPropertyInfo> newlanguageDepInfos)
Set the Property::languageDepInfos- Parameters:
newlanguageDepInfos
- the languageDepInfos to set
-
addLanguageDepInfo
public void addLanguageDepInfo(LanguageDependantPropertyInfo langInfo)
Add language dependant information- Parameters:
langInfo
- Language information
-
getNamespaceID
public NamespaceID getNamespaceID()
Get the Property::namespaceID- Returns:
- the namespaceID
-
setNamespaceID
public void setNamespaceID(NamespaceID newnamespaceID)
Set the Property::namespaceID- Parameters:
newnamespaceID
- the namespaceID to set
-
getNamespace
public String getNamespace()
Get namespace- Returns:
- the namespace
-
setNamespace
public void setNamespace(String newnamespace)
Set namespace- Parameters:
newnamespace
- the namespace to set
-
getClassName
public String getClassName()
Get className- Returns:
- the className
-
setClassName
public void setClassName(String newclassName)
Set className- Parameters:
newclassName
- the className to set
-
getSetterImplementationID
public ImplementationID getSetterImplementationID()
Get setterImplementationID- Returns:
- the setterImplementationID
-
setSetterImplementationID
public void setSetterImplementationID(ImplementationID newsetterImplementationID)
Set setterImplementationID- Parameters:
newsetterImplementationID
- the setterImplementationID to set
-
getUpdateOperationID
public OperationID getUpdateOperationID()
Get the Property::updateOperationID- Returns:
- the updateOperationID
-
setUpdateOperationID
public void setUpdateOperationID(OperationID newUpdateOperationID)
Set the Property::updateOperationID- Parameters:
newUpdateOperationID
- the setterOperationID to set
-
getUpdateImplementationID
public ImplementationID getUpdateImplementationID()
Get updateImplementationID- Returns:
- the updateImplementationID
-
setUpdateImplementationID
public void setUpdateImplementationID(ImplementationID newUpdateImplementationID)
Set updateImplementationID- Parameters:
newUpdateImplementationID
- the setterImplementationID to set
-
getAnnotations
public List<Annotation> getAnnotations()
Get annotations- Returns:
- List of property's annotations
-
setAnnotations
public void setAnnotations(List<Annotation> annotations)
Set annotations- Parameters:
annotations
- the list of annotations to set
-
addAnnotation
public void addAnnotation(Annotation annotation)
Add an annotation to the property- Parameters:
annotation
- the annotation to add
-
getAfterUpdate
public String getAfterUpdate()
-
setAfterUpdate
public void setAfterUpdate(String afterUpdate)
-
getBeforeUpdate
public String getBeforeUpdate()
-
setBeforeUpdate
public void setBeforeUpdate(String beforeUpdate)
-
getInMaster
public boolean getInMaster()
-
setInMaster
public void setInMaster(boolean inMaster)
-
isReplicated
public boolean isReplicated()
-
-