Skip to content

Commit

Permalink
getCharacteristicType now public
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-hickman-epistimis committed Feb 22, 2024
1 parent 1e23877 commit 64d4257
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected List<ConceptualCharacteristic> getCharacteristics(ConceptualEntity obj
protected String getCharacteristicRolename(ConceptualCharacteristic obj) { return obj.getRolename(); }

@Override
protected ConceptualComposableElement getCharacteristicType(ConceptualCharacteristic obj) {
public ConceptualComposableElement getCharacteristicType(ConceptualCharacteristic obj) {
// TODO Auto-generated method stub
if (obj instanceof ConceptualComposition) {
return ((ConceptualComposition)obj).getType();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected List<LogicalCharacteristic> getCharacteristics(LogicalEntity obj) {
protected String getCharacteristicRolename(LogicalCharacteristic obj) { return obj.getRolename(); }

@Override
protected LogicalComposableElement getCharacteristicType(LogicalCharacteristic obj) {
public LogicalComposableElement getCharacteristicType(LogicalCharacteristic obj) {
// TODO Auto-generated method stub
if (obj instanceof LogicalComposition) {
return ((LogicalComposition)obj).getType();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected EClass getRelatedPackageEntityInstance(PlatformQuery obj) {
protected String getCharacteristicRolename(PlatformCharacteristic obj) { return obj.getRolename(); }

@Override
protected PlatformComposableElement getCharacteristicType(PlatformCharacteristic obj) {
public PlatformComposableElement getCharacteristicType(PlatformCharacteristic obj) {
// TODO Auto-generated method stub
if (obj instanceof PlatformComposition) {
return ((PlatformComposition)obj).getType();
Expand Down
15 changes: 8 additions & 7 deletions com.epistimis.uddl/src/com/epistimis/uddl/QueryProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public abstract class QueryProcessor<ComposableElement extends UddlElement,
abstract protected EClass getRelatedPackageEntityInstance(Query obj);

// Get the Characteristic's type, rolename, or bounds
abstract protected ComposableElement getCharacteristicType(Characteristic obj);
abstract public ComposableElement getCharacteristicType(Characteristic obj);

abstract protected String getCharacteristicRolename(Characteristic obj);

Expand Down Expand Up @@ -343,8 +343,9 @@ public QueryStatement parseQuery(Query query) {
* Processing a CompositeQuery just means drilling down and processing each
* contained individual query
*
* @param query
* @return
* @param query A CompositeQuery to process
* @return a map of (Query, QueryStatement) pairs. The QueryStatement is the result of parsing the specification in that
* Query. This stores only individual queries- flattening the CompositeQuery
*/
@SuppressWarnings("unchecked")
public Map<Query, QueryStatement> parseCompositeQuery(CompositeQuery query) {
Expand All @@ -366,8 +367,8 @@ public Map<Query, QueryStatement> parseCompositeQuery(CompositeQuery query) {
/**
* Get all the Entities referenced by this Query.
*
* @param conn
* @return
* @param query A query to analyze.
* @return a map of Entities referenced by this Query, keyed by the alias for the Entity used in the query
*/
public Map<String, Entity> getReferencedEntities(Query query) {
Map<String, Entity> entities = new HashMap<String, Entity>();
Expand All @@ -380,8 +381,8 @@ public Map<String, Entity> getReferencedEntities(Query query) {
/**
* Get all the Entities referenced by this CompositeQuery.
*
* @param conn
* @return
* @param query A CompositeQuery to process
* @return a map of Entities referenced by this Query, keyed by the alias for the Entity used in the query
*/
public Map<String, Entity> getReferencedEntitiesComposite(CompositeQuery query) {
Map<String, Entity> entities = new HashMap<String, Entity>();
Expand Down
3 changes: 1 addition & 2 deletions com.epistimis.uddl/src/com/epistimis/uddl/UddlQNP.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ public class UddlQNP extends DefaultDeclarativeQualifiedNameProvider { // Xba

@Inject IndexUtilities ndxUtils;
// Because the base class one is private
@Inject
protected IQualifiedNameConverter converter = new IQualifiedNameConverter.DefaultImpl();
@Inject protected IQualifiedNameConverter converter = new IQualifiedNameConverter.DefaultImpl();

@Inject protected QualifiedNameValueConverter qualifiedNameValueConverter = new QualifiedNameValueConverter();

Expand Down
12 changes: 7 additions & 5 deletions com.epistimis.uddl/src/com/epistimis/uddl/UddlRuntimeModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,18 @@ public Class<? extends IValueConverterService> bindIValueConverterService() {
return UddlValueConverters.class ;
}

// -------- Other providers --------------------------------
public Class<? extends com.epistimis.uddl.scoping.IPackageProvider> bindIPackageProvider() {
return UddlPackageProvider.class;
}

// -------- Epistimis Specific bindings --------------------------------

/**
* Inject this if you want the additional methods provided by this QNP
* @return
*/
public Class<? extends UddlQNP> bindUddlQNP() {
// TODO Auto-generated method stub
return UddlQNP.class;
}

Expand Down Expand Up @@ -144,10 +150,6 @@ public Class<? extends com.epistimis.uddl.extension.ConceptualEntityExt> bindCon
return ConceptualEntityExt.class;
}

// -------- Other providers --------------------------------
public Class<? extends com.epistimis.uddl.scoping.IPackageProvider> bindIPackageProvider() {
return UddlPackageProvider.class;
}


}

0 comments on commit 64d4257

Please sign in to comment.