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 booleancontainsProperty(String propertyName)Check if there is an PropertyStubInfo with name providedAccountIDgetApplicantID()Get the StubInfoForGeneration::applicantIDMetaClassIDgetClassID()Get the StubInfo::classIDStringgetClassName()Get the StubInfo::classNameSet<ContractID>getContracts()Get the StubInfoForGeneration::contractsImplementationStubInfogetImplementationByID(String implID)Get implementation Stub Info from impl idImplementationStubInfogetImplementationByNameAndSignature(String implNameAndDesc)Get implementation Stub Info from op name and descriptorMap<String,ImplementationStubInfo>getImplementations()Get implementationsMap<String,ImplementationStubInfo>getImplementationsByID()Get implementationsByIDStringgetNamespace()Get the StubInfo::namespaceNamespaceIDgetNamespaceID()Get the StubInfo::namespaceIDStringgetParentClassName()Get parentClassNameMap<String,PropertyStubInfo>getProperties()Get the StubInfo::propertiesList<String>getPropertyListWithNulls()Get the StubInfo::proeprtyListWithNullsPropertyStubInfogetPropertyWithName(String name)Get property with name providedinthashCode()voidsetApplicantID(AccountID newapplicantID)Set the StubInfoForGeneration::applicantIDvoidsetClassID(MetaClassID newclassID)Set the StubInfo::classIDvoidsetClassName(String newclassName)Set the StubInfo::classNamevoidsetContracts(Set<ContractID> newContracts)Set the StubInfoForGeneration::contractsvoidsetImplementations(Map<String,ImplementationStubInfo> newimplementations)Set the StubInfoForGeneration::implementationsvoidsetImplementationsByID(Map<String,ImplementationStubInfo> newimplementationsByID)Set implementationsByIDvoidsetNamespace(String newnamespace)Set the StubInfo::namespacevoidsetNamespaceID(NamespaceID newnamespaceID)Set the StubInfo::namespaceIDvoidsetParentClassName(String newparentClassName)Set parentClassNamevoidsetProperties(Map<String,PropertyStubInfo> newproperties)Set the StubInfo::propertiesvoidsetPropertyListWithNulls(List<String> newpropertyListWithNulls)Set the StubInfo::propertyListWithNullsStringtoString()
-
-
-
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
-
-