Class SerializableReferenceDescription
- java.lang.Object
-
- org.eclipse.xtext.resource.persistence.SerializableReferenceDescription
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,IReferenceDescription
public class SerializableReferenceDescription extends java.lang.Object implements IReferenceDescription, java.io.Externalizable
- Since:
- 2.8
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SerializableReferenceDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.common.util.URIgetContainerEObjectURI()org.eclipse.emf.ecore.EReferencegetEReference()intgetIndexInList()org.eclipse.emf.common.util.URIgetSourceEObjectUri()org.eclipse.emf.common.util.URIgetTargetEObjectUri()voidreadExternal(java.io.ObjectInput in)voidsetContainerEObjectURI(org.eclipse.emf.common.util.URI containerEObjectURI)voidsetEReference(org.eclipse.emf.ecore.EReference eReference)voidsetIndexInList(int indexInList)voidsetSourceEObjectUri(org.eclipse.emf.common.util.URI sourceEObjectUri)voidsetTargetEObjectUri(org.eclipse.emf.common.util.URI targetEObjectUri)voidupdateResourceURI(org.eclipse.emf.common.util.URI newURI, org.eclipse.emf.common.util.URI oldURI)voidwriteExternal(java.io.ObjectOutput out)
-
-
-
Method Detail
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
updateResourceURI
public void updateResourceURI(org.eclipse.emf.common.util.URI newURI, org.eclipse.emf.common.util.URI oldURI)
-
getSourceEObjectUri
public org.eclipse.emf.common.util.URI getSourceEObjectUri()
- Specified by:
getSourceEObjectUriin interfaceIReferenceDescription- Returns:
- the URI pointing to the source
EObject
-
setSourceEObjectUri
public void setSourceEObjectUri(org.eclipse.emf.common.util.URI sourceEObjectUri)
-
getTargetEObjectUri
public org.eclipse.emf.common.util.URI getTargetEObjectUri()
- Specified by:
getTargetEObjectUriin interfaceIReferenceDescription- Returns:
- the URI pointing to the target
EObject
-
setTargetEObjectUri
public void setTargetEObjectUri(org.eclipse.emf.common.util.URI targetEObjectUri)
-
getContainerEObjectURI
public org.eclipse.emf.common.util.URI getContainerEObjectURI()
- Specified by:
getContainerEObjectURIin interfaceIReferenceDescription- Returns:
- the URI pointing to the exported
EObjectcontaining this reference. This can be the EObject defining the reference or one of its containers.
-
setContainerEObjectURI
public void setContainerEObjectURI(org.eclipse.emf.common.util.URI containerEObjectURI)
-
getEReference
public org.eclipse.emf.ecore.EReference getEReference()
- Specified by:
getEReferencein interfaceIReferenceDescription- Returns:
- the
EReference
-
setEReference
public void setEReference(org.eclipse.emf.ecore.EReference eReference)
-
getIndexInList
public int getIndexInList()
- Specified by:
getIndexInListin interfaceIReferenceDescription- Returns:
- the index of the reference, if the reference isMultiple, -1 if it is a single value reference
-
setIndexInList
public void setIndexInList(int indexInList)
-
-