|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.repository.SofaURIFactory
public class SofaURIFactory
Factory for creating SofaURI. As an instance is EMF URI implementation returned with some parts predefined. It should be used for creating all SofaURI instances.
Field Summary | |
---|---|
static java.lang.String |
ERROR_NO_VERSION
This message is sent by createURIWithAuthority in
IllegalArgumentException when no version is set. |
static java.lang.String |
TRAILING_SLASH
This must be set into URI's fragment, otherwise XMLResource will not find any object by our URIs. |
static java.lang.String |
URI_DATA_AUTHORITY
Authority used for data URIs (targets are data). |
static java.lang.String |
URI_INTERNAL_AUTHORITY
Authority used for URIs of internal objects of Sofa repository. |
static java.lang.String |
URI_META_AUTHORITY
Authority used for meta URIs (targets are metadata). |
Constructor Summary | |
---|---|
SofaURIFactory()
|
Method Summary | |
---|---|
static org.eclipse.emf.common.util.URI |
createDataURI(java.lang.String name,
java.lang.String version)
Static method used to create instance of SofaURI which uniquely represents DATA content of repository. |
static org.eclipse.emf.common.util.URI |
createDataURI(java.lang.String name,
Version version)
Static method used to create instance of SofaURI which uniquely represents DATA content of repository. |
static org.eclipse.emf.common.util.URI |
createDataURI(org.eclipse.emf.common.util.URI metaObject,
DataStreamType dataStreamType)
Static method used to create instance of SofaURI which uniquely represents DATA content of repository attached to meta object specified by metaObject URI. |
static org.eclipse.emf.common.util.URI |
createDataURIWithQuery(org.eclipse.emf.common.util.URI metaObject,
DataStreamType dataStreamType,
java.util.Map<java.lang.String,java.lang.String> params)
Static method used to create instance of SofaURI which uniquely represents DATA content of repository attached to meta object specified by metaObject URI and by query string which is constructed from params map. |
static org.eclipse.emf.common.util.URI |
createURI(java.lang.String name,
java.lang.String version)
Static method used to create instance of SofaURI which uniquely represents META content of repository. |
static org.eclipse.emf.common.util.URI |
createURI(java.lang.String name,
Version version)
Static method used to create instance of SofaURI which uniquely represents META content of repository. |
static org.eclipse.emf.common.util.URI |
createURIWithAuthority(java.lang.String name,
java.lang.String version,
java.lang.String authority)
Basic static method which can create all SofaURIs (only exception is URI of RepositoryData object, for this URI SofaURIFactory.getRepositoryDataURI must be used). |
static org.eclipse.emf.common.util.URI |
getRepositoryDataURI()
Returns static URI of RepositoryData object. |
static org.eclipse.emf.common.util.URI |
getRepositoryInfoURI()
Returns static URI of RepositoryInfo object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ERROR_NO_VERSION
createURIWithAuthority
in
IllegalArgumentException when no version is set.
public static final java.lang.String URI_META_AUTHORITY
public static final java.lang.String URI_DATA_AUTHORITY
public static final java.lang.String URI_INTERNAL_AUTHORITY
public static final java.lang.String TRAILING_SLASH
Constructor Detail |
---|
public SofaURIFactory()
Method Detail |
---|
public static org.eclipse.emf.common.util.URI createURI(java.lang.String name, Version version)
name
- hierarchical name of repository content in dot notationversion
- version of repository content
public static org.eclipse.emf.common.util.URI createURI(java.lang.String name, java.lang.String version)
name
- hierarchical name of repository content in dot notationversion
- version of repository content
public static org.eclipse.emf.common.util.URI createDataURI(java.lang.String name, Version version)
name
- hierarchical name of repository content in dot notationversion
- version of repository content
public static org.eclipse.emf.common.util.URI createDataURI(java.lang.String name, java.lang.String version)
name
- hierarchical name of repository content in dot notationversion
- version of repository content
public static org.eclipse.emf.common.util.URI createDataURI(org.eclipse.emf.common.util.URI metaObject, DataStreamType dataStreamType)
name
- hierarchical name of repository content in dot notationversion
- version of repository content
public static org.eclipse.emf.common.util.URI createDataURIWithQuery(org.eclipse.emf.common.util.URI metaObject, DataStreamType dataStreamType, java.util.Map<java.lang.String,java.lang.String> params)
name
- hierarchical name of repository content in dot notationversion
- version of repository contentparams
- map of pairs paramName and paramValue
public static org.eclipse.emf.common.util.URI getRepositoryDataURI()
RepositoryData
object. Should be used only
internally. See RepositoryQuery.getRepositoryDara
.
public static org.eclipse.emf.common.util.URI getRepositoryInfoURI()
RepositoryInfo
object. Should be used only
internally. See RepositoryQuery.getRepositoryInfo
.
public static org.eclipse.emf.common.util.URI createURIWithAuthority(java.lang.String name, java.lang.String version, java.lang.String authority)
SofaURIFactory.getRepositoryDataURI
must be used). This method
should be used only internally.
name
- hierarchical name of repository content in dot notationversion
- string representation of version of repository contentauthority
- basically URI_META_AUTHORITY or URI_DATA_AUTHORITY
createURI
,
getRepositoryDataURI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |