Package com.perforce.p4java.core
Interface IStream
- All Superinterfaces:
IServerResource,IStreamSummary
- All Known Implementing Classes:
Stream
Defines a full Perforce stream specification. A stream specification ('spec')
names a path in a stream depot to be treated as a stream. (See 'p4 help
streamintro'.) The spec also defines the stream's lineage, its view, and its
expected flow of change.
Full stream specs in the current implementation are always complete.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDefines an "extraTag*" fieldNested classes/interfaces inherited from interface com.perforce.p4java.core.IStreamSummary
IStreamSummary.IOptions, IStreamSummary.ParentView, IStreamSummary.Type -
Method Summary
Modifier and TypeMethodDescriptionReturn the automatically generated client view map associated with this stream.Return a list of extra tags associated with this stream.Return the ignored view map associated with this stream.Return the remapped view map associated with this stream.Return the view map associated with this stream.voidsetClientView(ViewMap<IClientViewMapping> clientView) Set the automatically generated client view map associated with this stream spec.voidsetComponents(ViewMap<IStreamComponentMapping> components) voidsetExtraTags(List<IStream.IExtraTag> extraTags) Set the extra tags associated with this stream.voidsetIgnoredView(ViewMap<IStreamIgnoredMapping> ignoredView) Set the ignored view map associated with this stream spec.voidsetRemappedView(ViewMap<IStreamRemappedMapping> remappedView) Set the remapped view map associated with this stream spec.voidsetServer(IOptionsServer server) Set the server to type of IOptionsServer, overriding the default IServer.voidsetStreamView(ViewMap<IStreamViewMapping> streamView) Set the view map associated with this stream spec.Methods inherited from interface com.perforce.p4java.core.IServerResource
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, updateMethods inherited from interface com.perforce.p4java.core.IStreamSummary
getAccessed, getBaseParent, getDescription, getName, getOptions, getOwnerName, getParent, getParentView, getStream, getType, getUpdated, isChangeFlowsFromParent, isChangeFlowsToParent, isFirmerThanParent, isUnloaded, setAccessed, setBaseParent, setChangeFlowsFromParent, setChangeFlowsToParent, setDescription, setFirmerThanParent, setName, setOptions, setOwnerName, setParent, setParentView, setStream, setType, setUpdated
-
Method Details
-
getStreamView
ViewMap<IStreamViewMapping> getStreamView()Return the view map associated with this stream. One or more mappings that define file paths in the stream view. Each line is of the form: path_type view_path [depot_path]- Returns:
- non-null list of IStreamViewMapping mappings for this stream.
-
setStreamView
Set the view map associated with this stream spec. This will not change the associated stream spec on the Perforce server unless you arrange for the update to server.- Parameters:
streamView- new view mappings for the stream.
-
getRemappedView
ViewMap<IStreamRemappedMapping> getRemappedView()Return the remapped view map associated with this stream. Optional; one or more mappings that define how stream view paths are to be remapped in client views. Each line is of the form: view_path_1 view_path_2- Returns:
- possibly-null (optional) list of IStreamRemappedMapping mappings for this stream.
-
setRemappedView
Set the remapped view map associated with this stream spec. This will not change the associated stream spec on the Perforce server unless you arrange for the update to server.- Parameters:
remappedView- new remapped view mappings for the stream.
-
getIgnoredView
ViewMap<IStreamIgnoredMapping> getIgnoredView()Return the ignored view map associated with this stream. Optional; a list of file or directory names to be ignored in client views. mappings in the "Ignored" field may appear in any order. Ignored names are inherited by child stream client views.- Returns:
- possibly-null (optional) list of IStreamIgnoredMapping mappings to be ignored for this stream.
-
setIgnoredView
Set the ignored view map associated with this stream spec. This will not change the associated stream spec on the Perforce server unless you arrange for the update to server.- Parameters:
ignoredView- ignore view mapping
-
getClientView
ViewMap<IClientViewMapping> getClientView()Return the automatically generated client view map associated with this stream. Maps files in the depot to files in your client workspace.- Returns:
- possibly-null list of automatically generated IClientViewMapping mappings associated with this stream.
-
setClientView
Set the automatically generated client view map associated with this stream spec. This will not change the associated stream spec on the Perforce server unless you arrange for the update to server.- Parameters:
clientView- client view
-
getExtraTags
List<IStream.IExtraTag> getExtraTags()Return a list of extra tags associated with this stream.- Returns:
- possibly-null list of extra tags associated with this stream.
-
setExtraTags
Set the extra tags associated with this stream. This will not change the associated stream spec on the Perforce server unless you arrange for the update to server.- Parameters:
extraTags- extra tags
-
setServer
Set the server to type of IOptionsServer, overriding the default IServer.- Parameters:
server- server
-
getComponents
ViewMap<IStreamComponentMapping> getComponents() -
setComponents
- Parameters:
components- A stream Components
-