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.URI
getContainerEObjectURI()
org.eclipse.emf.ecore.EReference
getEReference()
int
getIndexInList()
org.eclipse.emf.common.util.URI
getSourceEObjectUri()
org.eclipse.emf.common.util.URI
getTargetEObjectUri()
void
readExternal(java.io.ObjectInput in)
void
setContainerEObjectURI(org.eclipse.emf.common.util.URI containerEObjectURI)
void
setEReference(org.eclipse.emf.ecore.EReference eReference)
void
setIndexInList(int indexInList)
void
setSourceEObjectUri(org.eclipse.emf.common.util.URI sourceEObjectUri)
void
setTargetEObjectUri(org.eclipse.emf.common.util.URI targetEObjectUri)
void
updateResourceURI(org.eclipse.emf.common.util.URI newURI, org.eclipse.emf.common.util.URI oldURI)
void
writeExternal(java.io.ObjectOutput out)
-
-
-
Method Detail
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
readExternal
in interfacejava.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in 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:
getSourceEObjectUri
in 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:
getTargetEObjectUri
in 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:
getContainerEObjectURI
in interfaceIReferenceDescription
- Returns:
- the URI pointing to the exported
EObject
containing 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:
getEReference
in interfaceIReferenceDescription
- Returns:
- the
EReference
-
setEReference
public void setEReference(org.eclipse.emf.ecore.EReference eReference)
-
getIndexInList
public int getIndexInList()
- Specified by:
getIndexInList
in 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)
-
-