Class StubInfo
- java.lang.Object
-
- es.bsc.dataclay.util.management.stubs.StubInfo
-
public final class StubInfo extends Object
Stub information. This information belongs to each stub.
-
-
Constructor Summary
Constructors Constructor Description StubInfo()
StubInfo empty constructorStubInfo(String newnamespace, String newclassName, String newparentClassName, AccountID newapplicantID, MetaClassID newclassID, NamespaceID newnamespaceID, Map<String,ImplementationStubInfo> newimplementationsByID, Map<String,ImplementationStubInfo> newimplementations, Map<String,PropertyStubInfo> newproperties, List<String> newpropertyListWithNulls, Set<ContractID> newContracts)
StubInfo constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsProperty(String propertyName)
Check if there is an PropertyStubInfo with name providedAccountID
getApplicantID()
Get the StubInfoForGeneration::applicantIDMetaClassID
getClassID()
Get the StubInfo::classIDString
getClassName()
Get the StubInfo::classNameSet<ContractID>
getContracts()
Get the StubInfoForGeneration::contractsImplementationStubInfo
getImplementationByID(String implID)
Get implementation Stub Info from impl idImplementationStubInfo
getImplementationByNameAndSignature(String implNameAndDesc)
Get implementation Stub Info from op name and descriptorMap<String,ImplementationStubInfo>
getImplementations()
Get implementationsMap<String,ImplementationStubInfo>
getImplementationsByID()
Get implementationsByIDString
getNamespace()
Get the StubInfo::namespaceNamespaceID
getNamespaceID()
Get the StubInfo::namespaceIDString
getParentClassName()
Get parentClassNameMap<String,PropertyStubInfo>
getProperties()
Get the StubInfo::propertiesList<String>
getPropertyListWithNulls()
Get the StubInfo::proeprtyListWithNullsPropertyStubInfo
getPropertyWithName(String name)
Get property with name providedint
hashCode()
void
setApplicantID(AccountID newapplicantID)
Set the StubInfoForGeneration::applicantIDvoid
setClassID(MetaClassID newclassID)
Set the StubInfo::classIDvoid
setClassName(String newclassName)
Set the StubInfo::classNamevoid
setContracts(Set<ContractID> newContracts)
Set the StubInfoForGeneration::contractsvoid
setImplementations(Map<String,ImplementationStubInfo> newimplementations)
Set the StubInfoForGeneration::implementationsvoid
setImplementationsByID(Map<String,ImplementationStubInfo> newimplementationsByID)
Set implementationsByIDvoid
setNamespace(String newnamespace)
Set the StubInfo::namespacevoid
setNamespaceID(NamespaceID newnamespaceID)
Set the StubInfo::namespaceIDvoid
setParentClassName(String newparentClassName)
Set parentClassNamevoid
setProperties(Map<String,PropertyStubInfo> newproperties)
Set the StubInfo::propertiesvoid
setPropertyListWithNulls(List<String> newpropertyListWithNulls)
Set the StubInfo::propertyListWithNullsString
toString()
-
-
-
Constructor Detail
-
StubInfo
public StubInfo()
StubInfo empty constructor
-
StubInfo
public StubInfo(String newnamespace, String newclassName, String newparentClassName, AccountID newapplicantID, MetaClassID newclassID, NamespaceID newnamespaceID, Map<String,ImplementationStubInfo> newimplementationsByID, Map<String,ImplementationStubInfo> newimplementations, Map<String,PropertyStubInfo> newproperties, List<String> newpropertyListWithNulls, Set<ContractID> newContracts)
StubInfo constructor- Parameters:
newnamespace
- Namespace of the stubnewclassName
- Name of class of the stubnewparentClassName
- Name of parent class of the stub (used to seek for impls)newapplicantID
- ID of the account applicant of the contract.newclassID
- ID of classnewnamespaceID
- ID of the namespacenewimplementationsByID
- Implementations by idnewimplementations
- Information of the implementations in the stub.newproperties
- Information of the properties in the stub.newpropertyListWithNulls
- Information of the property ordered list (plus null fields) in the stub.newContracts
- The IDs of the contracts used for this stub.
-
-
Method Detail
-
getContracts
public Set<ContractID> getContracts()
Get the StubInfoForGeneration::contracts- Returns:
- the contracts
-
setContracts
public void setContracts(Set<ContractID> newContracts)
Set the StubInfoForGeneration::contracts- Parameters:
newContracts
- New contracts
-
getImplementationByID
public ImplementationStubInfo getImplementationByID(String implID)
Get implementation Stub Info from impl id- Parameters:
implID
- ID of impl.- Returns:
- Implementation stub info
-
getImplementationByNameAndSignature
public ImplementationStubInfo getImplementationByNameAndSignature(String implNameAndDesc)
Get implementation Stub Info from op name and descriptor- Parameters:
implNameAndDesc
- Implementation name and descriptor- Returns:
- Implementation stub info
-
setImplementations
public void setImplementations(Map<String,ImplementationStubInfo> newimplementations)
Set the StubInfoForGeneration::implementations- Parameters:
newimplementations
- the implementations to set
-
getProperties
public Map<String,PropertyStubInfo> getProperties()
Get the StubInfo::properties- Returns:
- the properties
-
setProperties
public void setProperties(Map<String,PropertyStubInfo> newproperties)
Set the StubInfo::properties- Parameters:
newproperties
- the properties to set
-
getPropertyListWithNulls
public List<String> getPropertyListWithNulls()
Get the StubInfo::proeprtyListWithNulls- Returns:
- the propertyListWithNulls
-
setPropertyListWithNulls
public void setPropertyListWithNulls(List<String> newpropertyListWithNulls)
Set the StubInfo::propertyListWithNulls- Parameters:
newpropertyListWithNulls
- the list of property names to set
-
containsProperty
public boolean containsProperty(String propertyName)
Check if there is an PropertyStubInfo with name provided- Parameters:
propertyName
- Property name- Returns:
- TRUE if there is an Property with name provided. FALSE otherwise.
-
getApplicantID
public AccountID getApplicantID()
Get the StubInfoForGeneration::applicantID- Returns:
- the applicantID
-
setApplicantID
public void setApplicantID(AccountID newapplicantID)
Set the StubInfoForGeneration::applicantID- Parameters:
newapplicantID
- the applicantID to set
-
getNamespace
public String getNamespace()
Get the StubInfo::namespace- Returns:
- the namespace
-
setNamespace
public void setNamespace(String newnamespace)
Set the StubInfo::namespace- Parameters:
newnamespace
- the namespace to set
-
getClassName
public String getClassName()
Get the StubInfo::className- Returns:
- the className
-
setClassName
public void setClassName(String newclassName)
Set the StubInfo::className- Parameters:
newclassName
- the className to set
-
getClassID
public MetaClassID getClassID()
Get the StubInfo::classID- Returns:
- the classID
-
setClassID
public void setClassID(MetaClassID newclassID)
Set the StubInfo::classID- Parameters:
newclassID
- the classID to set
-
getNamespaceID
public NamespaceID getNamespaceID()
Get the StubInfo::namespaceID- Returns:
- the namespaceID
-
setNamespaceID
public void setNamespaceID(NamespaceID newnamespaceID)
Set the StubInfo::namespaceID- Parameters:
newnamespaceID
- the namespaceID to set
-
getParentClassName
public String getParentClassName()
Get parentClassName- Returns:
- the parentClassName
-
setParentClassName
public void setParentClassName(String newparentClassName)
Set parentClassName- Parameters:
newparentClassName
- the parentClassName to set
-
getPropertyWithName
public PropertyStubInfo getPropertyWithName(String name)
Get property with name provided- Parameters:
name
- Name of the propery- Returns:
- Property stub info.
-
getImplementationsByID
public Map<String,ImplementationStubInfo> getImplementationsByID()
Get implementationsByID- Returns:
- the implementationsByID
-
setImplementationsByID
public void setImplementationsByID(Map<String,ImplementationStubInfo> newimplementationsByID)
Set implementationsByID- Parameters:
newimplementationsByID
- the implementationsByID to set
-
getImplementations
public Map<String,ImplementationStubInfo> getImplementations()
Get implementations- Returns:
- the implementations
-
-