|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.internal.resources.ResourceInfo
public class ResourceInfo
A data structure containing the in-memory state of a resource in the workspace.
Field Summary |
---|
Constructor Summary | |
---|---|
ResourceInfo()
|
Method Summary | |
---|---|
void |
clear(int mask)
Clears all of the bits indicated by the mask. |
void |
clearModificationStamp()
|
void |
clearSessionProperties()
|
java.lang.Object |
clone()
ElementTreeData must define a publicly accessible clone method. |
int |
getCharsetGenerationCount()
|
int |
getContentId()
|
FileStoreRoot |
getFileStoreRoot()
|
int |
getFlags()
Returns the set of flags for this info. |
long |
getLocalSyncInfo()
Gets the local-relative sync information. |
int |
getMarkerGenerationCount()
Returns the marker generation count. |
MarkerSet |
getMarkers()
Returns a copy of the collection of makers on this resource. |
MarkerSet |
getMarkers(boolean makeCopy)
Returns the collection of makers on this resource. |
long |
getModificationStamp()
|
long |
getNodeId()
|
java.lang.Object |
getPropertyStore()
Returns the property store associated with this info. |
java.util.Map |
getSessionProperties()
Returns a copy of the map of this resource session properties. |
java.lang.Object |
getSessionProperty(org.eclipse.core.runtime.QualifiedName name)
Returns the value of the identified session property |
ObjectMap |
getSyncInfo(boolean makeCopy)
The parameter to this method is the implementing class rather than the interface so we ensure that we get it right since we are making certain assumptions about the object type w.r.t. |
byte[] |
getSyncInfo(org.eclipse.core.runtime.QualifiedName id,
boolean makeCopy)
|
int |
getSyncInfoGenerationCount()
Returns the sync information generation count. |
int |
getType()
Returns the type setting for this info. |
static int |
getType(int flags)
Returns the type setting for this info. |
void |
incrementCharsetGenerationCount()
Increments the charset generation count. |
void |
incrementContentId()
Mark this resource info as having changed content |
void |
incrementMarkerGenerationCount()
Increments the marker generation count. |
void |
incrementModificationStamp()
Change the modification stamp to indicate that this resource has changed. |
void |
incrementSyncInfoGenerationCount()
Increments the sync information generation count. |
boolean |
isSet(int mask)
Returns true if all of the bits indicated by the mask are set. |
static boolean |
isSet(int flags,
int mask)
Returns true if all of the bits indicated by the mask are set. |
void |
readFrom(int newFlags,
java.io.DataInput input)
|
void |
set(int mask)
Sets all of the bits indicated by the mask. |
void |
setFileStoreRoot(FileStoreRoot fileStoreRoot)
|
void |
setLocalSyncInfo(long info)
Sets the local-relative sync information. |
void |
setMarkers(MarkerSet value)
Sets the collection of makers for this resource. |
void |
setModificationStamp(long value)
Sets the resource modification stamp. |
void |
setNodeId(long id)
|
void |
setPropertyStore(java.lang.Object value)
Sets the property store associated with this info. |
void |
setSessionProperty(org.eclipse.core.runtime.QualifiedName name,
java.lang.Object value)
Sets the identified session property to the given value. |
void |
setSyncInfo(org.eclipse.core.runtime.QualifiedName id,
byte[] value)
|
void |
setType(int value)
Sets the type for this info to the given value. |
void |
shareStrings(StringPool set)
Instructs this participant to share its strings in the provided pool. |
void |
writeTo(java.io.DataOutput output)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceInfo()
Method Detail |
---|
public static int getType(int flags)
public static boolean isSet(int flags, int mask)
public void clear(int mask)
public void clearModificationStamp()
public void clearSessionProperties()
public java.lang.Object clone()
IElementTreeData
clone
in interface IElementTreeData
clone
in class java.lang.Object
public int getCharsetGenerationCount()
public int getContentId()
public FileStoreRoot getFileStoreRoot()
public int getFlags()
public long getLocalSyncInfo()
public int getMarkerGenerationCount()
public MarkerSet getMarkers()
null
is returned if there are none.
public MarkerSet getMarkers(boolean makeCopy)
null
is returned if there are none.
public long getModificationStamp()
public long getNodeId()
public java.lang.Object getPropertyStore()
public java.util.Map getSessionProperties()
public java.lang.Object getSessionProperty(org.eclipse.core.runtime.QualifiedName name)
public ObjectMap getSyncInfo(boolean makeCopy)
public byte[] getSyncInfo(org.eclipse.core.runtime.QualifiedName id, boolean makeCopy)
public int getSyncInfoGenerationCount()
public int getType()
public void incrementCharsetGenerationCount()
public void incrementContentId()
public void incrementMarkerGenerationCount()
public void incrementModificationStamp()
public void incrementSyncInfoGenerationCount()
public boolean isSet(int mask)
public void readFrom(int newFlags, java.io.DataInput input) throws java.io.IOException
java.io.IOException
public void set(int mask)
public void setFileStoreRoot(FileStoreRoot fileStoreRoot)
public void setLocalSyncInfo(long info)
public void setMarkers(MarkerSet value)
null
is passed in if there are no markers.
public void setModificationStamp(long value)
public void setNodeId(long id)
public void setPropertyStore(java.lang.Object value)
public void setSessionProperty(org.eclipse.core.runtime.QualifiedName name, java.lang.Object value)
public void setSyncInfo(org.eclipse.core.runtime.QualifiedName id, byte[] value)
public void setType(int value)
public void shareStrings(StringPool set)
IStringPoolParticipant
shareStrings
in interface IStringPoolParticipant
public void writeTo(java.io.DataOutput output) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |