Class UniqueNameContainmentDataReference
- java.lang.Object
- 
- com._1c.g5.v8.dt.supply.datareference.UniqueNameContainmentDataReference
 
- 
- All Implemented Interfaces:
- IContainmentDataReference,- IDataReference
 
 public class UniqueNameContainmentDataReference extends Object implements IContainmentDataReference Addresses a naturally unique name of an element within a specific hierarchy of objects. Could be used to address such objects as form items, etc.
 Contains the name of the object, the hierarchy type and the reverse parent path (from bottom to top) withing the element hierarchy. The path is used to compute enherited integration policies in case if no direct policy is defined for the reference.
- 
- 
Constructor SummaryConstructors Constructor Description UniqueNameContainmentDataReference(String name, org.eclipse.emf.ecore.EClass type)Creates an instance of the reference.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDependencyContext(SupplyDependencyContext dependencyContext)Adds a dependency context to the path.Iterable<SupplyDependencyContext>getDependencyContexts()Gets the dependency context iterable.StringgetName()Gets the name of the referenced elementIPropertyDataReferencegetPropertyDataReference()Gets the property reference (if any).org.eclipse.emf.ecore.EClassgetType()The type of the element hiearchy with unique names.booleanhasParentPath()Checks if this reference has the parent path.voidsetPropertyDataReference(IPropertyDataReference propertyDataReference)Sets the property data reference.
 
- 
- 
- 
Constructor Detail- 
UniqueNameContainmentDataReferencepublic UniqueNameContainmentDataReference(String name, org.eclipse.emf.ecore.EClass type) Creates an instance of the reference.- Parameters:
- name- The name of the element. Can be- nullin case if the reference context cannot be addressed yet data path could be obtained.
- type- The type of the hierarchy. Can't be- null
 
 
- 
 - 
Method Detail- 
addDependencyContextpublic void addDependencyContext(SupplyDependencyContext dependencyContext) Adds a dependency context to the path. As the path is reversed, the added element will be added to the tail of the path.- Parameters:
- dependencyContext- The dependency context of the parent element. Cannot be- null
 
 - 
getNamepublic String getName() Gets the name of the referenced element- Returns:
- The name of the element. Can be nullin case if the reference context cannot be
 
 - 
getDependencyContextspublic Iterable<SupplyDependencyContext> getDependencyContexts() Gets the dependency context iterable. The path is reversed (deepest precursor first) to ease the inheritance computation.- Returns:
- The iterable containing parent element names. Cannot be null
- See Also:
- SupplyDependencyContext
 
 - 
getPropertyDataReferencepublic IPropertyDataReference getPropertyDataReference() Description copied from interface:IContainmentDataReferenceGets the property reference (if any).- Specified by:
- getPropertyDataReferencein interface- IContainmentDataReference
- Returns:
- Property reference. Can be null
 
 - 
getTypepublic org.eclipse.emf.ecore.EClass getType() The type of the element hiearchy with unique names.- Returns:
- The type of the hierarchy. Can't be null
 
 - 
hasParentPathpublic boolean hasParentPath() Checks if this reference has the parent path.- Returns:
- trueif the path exists;- falseotherwise
 
 - 
setPropertyDataReferencepublic void setPropertyDataReference(IPropertyDataReference propertyDataReference) Description copied from interface:IContainmentDataReferenceSets the property data reference.- Specified by:
- setPropertyDataReferencein interface- IContainmentDataReference
- Parameters:
- propertyDataReference- Property data reference. Can be- null
 
 
- 
 
-