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 voidaddAnnotation(Annotation annotation)Add an annotation to the propertyvoidaddLanguageDepInfo(LanguageDependantPropertyInfo langInfo)Add language dependant informationintcompareTo(Property other)booleanequals(Object t)StringgetAfterUpdate()List<Annotation>getAnnotations()Get annotationsStringgetBeforeUpdate()StringgetClassName()Get classNameImplementationIDgetGetterImplementationID()Get the Property::getterImplementationIDOperationIDgetGetterOperationID()Get the Property::getterOperationIDbooleangetInMaster()JavaPropertyInfogetJavaPropertyInfo()Get Java language-dependant information of the propertyMap<CommonMessages.Langs,LanguageDependantPropertyInfo>getLanguageDepInfos()Get the Property::languageDepInfosMetaClassIDgetMetaClassID()Get the Property::metaClassIDStringgetName()Get the name of this PropertyStringgetNamespace()Get namespaceNamespaceIDgetNamespaceID()Get the Property::namespaceIDintgetPosition()Get the Property::positionPythonPropertyInfogetPythonPropertyInfo()Get Python language-dependant information of the propertyImplementationIDgetSetterImplementationID()Get setterImplementationIDOperationIDgetSetterOperationID()Get the Property::setterOperationIDTypegetType()Get the TypeID of this PropertyImplementationIDgetUpdateImplementationID()Get updateImplementationIDOperationIDgetUpdateOperationID()Get the Property::updateOperationIDinthashCode()booleanisReplicated()voidsetAfterUpdate(String afterUpdate)voidsetAnnotations(List<Annotation> annotations)Set annotationsvoidsetBeforeUpdate(String beforeUpdate)voidsetClassName(String newclassName)Set classNamevoidsetGetterImplementationID(ImplementationID newGetterImplementationID)Set the Property::getterImplementationIDvoidsetGetterOperationID(OperationID newgetterOperationID)Set the Property::getterOperationIDvoidsetInMaster(boolean inMaster)voidsetLanguageDepInfos(Map<CommonMessages.Langs,LanguageDependantPropertyInfo> newlanguageDepInfos)Set the Property::languageDepInfosvoidsetMetaClassID(MetaClassID newmetaClassID)Set the Property::metaClassIDvoidsetName(String newname)Set the Property::name of this PropertyvoidsetNamespace(String newnamespace)Set namespacevoidsetNamespaceID(NamespaceID newnamespaceID)Set the Property::namespaceIDvoidsetPosition(int newPosition)Sets the Property::positionvoidsetSetterImplementationID(ImplementationID newsetterImplementationID)Set setterImplementationIDvoidsetSetterOperationID(OperationID newsetterOperationID)Set the Property::setterOperationIDvoidsetType(Type newtype)Set the Property::typevoidsetUpdateImplementationID(ImplementationID newUpdateImplementationID)Set updateImplementationIDvoidsetUpdateOperationID(OperationID newUpdateOperationID)Set the Property::updateOperationIDStringtoString()-
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:
compareToin 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()
-
-