Package com.powsybl.cgmes.conversion
Class AbstractCgmesAliasNamingStrategy
- java.lang.Object
-
- com.powsybl.cgmes.conversion.AbstractCgmesAliasNamingStrategy
-
- All Implemented Interfaces:
NamingStrategy
- Direct Known Subclasses:
FixedCgmesAliasNamingStrategy
,SimpleCgmesAliasNamingStrategy
public abstract class AbstractCgmesAliasNamingStrategy extends Object implements NamingStrategy
- Author:
- Miora Vedelago
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.powsybl.cgmes.conversion.NamingStrategy
NamingStrategy.Identity
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractCgmesAliasNamingStrategy()
protected
AbstractCgmesAliasNamingStrategy(Map<String,String> idByUuid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCgmesId(Identifiable<?> identifiable)
String
getCgmesId(Identifiable<?> identifiable, String subObject)
String
getCgmesId(String identifier)
String
getCgmesIdFromAlias(Identifiable<?> identifiable, String aliasType)
String
getCgmesIdFromProperty(Identifiable<?> identifiable, String propertyName)
String
getGeographicalTag(String geo)
String
getIidmId(String type, String id)
String
getName(String type, String name)
AbstractCgmesAliasNamingStrategy
readFrom(InputStream is)
void
readIdMapping(Identifiable<?> identifiable, String type)
void
writeIdMapping(String mappingFileName, DataSource ds)
void
writeIdMapping(Path path)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.cgmes.conversion.NamingStrategy
getName
-
-
-
-
Method Detail
-
readFrom
public AbstractCgmesAliasNamingStrategy readFrom(InputStream is)
-
getGeographicalTag
public String getGeographicalTag(String geo)
- Specified by:
getGeographicalTag
in interfaceNamingStrategy
-
getIidmId
public String getIidmId(String type, String id)
- Specified by:
getIidmId
in interfaceNamingStrategy
-
getCgmesId
public String getCgmesId(Identifiable<?> identifiable)
- Specified by:
getCgmesId
in interfaceNamingStrategy
-
getCgmesId
public String getCgmesId(Identifiable<?> identifiable, String subObject)
- Specified by:
getCgmesId
in interfaceNamingStrategy
-
getCgmesIdFromAlias
public String getCgmesIdFromAlias(Identifiable<?> identifiable, String aliasType)
- Specified by:
getCgmesIdFromAlias
in interfaceNamingStrategy
-
getCgmesIdFromProperty
public String getCgmesIdFromProperty(Identifiable<?> identifiable, String propertyName)
- Specified by:
getCgmesIdFromProperty
in interfaceNamingStrategy
-
getCgmesId
public String getCgmesId(String identifier)
- Specified by:
getCgmesId
in interfaceNamingStrategy
-
getName
public String getName(String type, String name)
- Specified by:
getName
in interfaceNamingStrategy
-
readIdMapping
public void readIdMapping(Identifiable<?> identifiable, String type)
- Specified by:
readIdMapping
in interfaceNamingStrategy
-
writeIdMapping
public void writeIdMapping(Path path)
- Specified by:
writeIdMapping
in interfaceNamingStrategy
-
writeIdMapping
public void writeIdMapping(String mappingFileName, DataSource ds)
- Specified by:
writeIdMapping
in interfaceNamingStrategy
-
-