Package org.alfresco.repo.jscript
Class ChildAssociation
- java.lang.Object
-
- org.alfresco.repo.jscript.ChildAssociation
-
- All Implemented Interfaces:
java.io.Serializable,Scopeable
public class ChildAssociation extends java.lang.Object implements Scopeable, java.io.Serializable
Object representing a child association- Author:
- Roy Wetherall
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChildAssociation(ServiceRegistry services, org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)ChildAssociation(ServiceRegistry services, org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef, org.mozilla.javascript.Scriptable scope)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScriptNodegetChild()org.alfresco.service.cmr.repository.ChildAssociationRefgetChildAssociationRef()java.lang.StringgetName()intgetNthSibling()ScriptNodegetParent()java.lang.StringgetType()booleanisPrimary()voidsetScope(org.mozilla.javascript.Scriptable scope)Set the Scriptable global scope
-
-
-
Constructor Detail
-
ChildAssociation
public ChildAssociation(ServiceRegistry services, org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
-
ChildAssociation
public ChildAssociation(ServiceRegistry services, org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef, org.mozilla.javascript.Scriptable scope)
Constructor- Parameters:
services- ServiceRegistrychildAssocRef- ChildAssociationRefscope- Scriptable
-
-
Method Detail
-
setScope
public void setScope(org.mozilla.javascript.Scriptable scope)
Description copied from interface:ScopeableSet the Scriptable global scope- Specified by:
setScopein interfaceScopeable- Parameters:
scope- relative global scope- See Also:
Scopeable.setScope(org.mozilla.javascript.Scriptable)
-
getChildAssociationRef
public org.alfresco.service.cmr.repository.ChildAssociationRef getChildAssociationRef()
-
getType
public java.lang.String getType()
-
getName
public java.lang.String getName()
-
getParent
public ScriptNode getParent()
-
getChild
public ScriptNode getChild()
-
isPrimary
public boolean isPrimary()
-
getNthSibling
public int getNthSibling()
-
-