@Test public void testSchemaType() { AssetDescriptor parentAsset = new AssetSummary(new Asset()); SchemaAttribute schemaAttribute = new SchemaAttribute(); AssetSchemaAttribute queryTarget = new AssetSchemaAttribute(schemaAttribute); SchemaImplementationQuery testBean = new SchemaImplementationQuery(); testBean.setQueryTargetGUID("TestGUID"); AssetSchemaImplementationQuery testTemplate = new AssetSchemaImplementationQuery((SchemaImplementationQuery)null, null); AssetSchemaImplementationQuery testObject; assertTrue(testTemplate.getQueryTargetElement() == null); testTemplate = new AssetSchemaImplementationQuery(testBean, queryTarget); assertTrue(testTemplate.getQueryTargetElement() != null); testTemplate = new AssetSchemaImplementationQuery(parentAsset, testBean, queryTarget); assertTrue(testTemplate.getQueryTargetElement() != null); testObject = new AssetSchemaImplementationQuery(parentAsset, testTemplate); assertTrue(testObject.getQueryTargetElement() != null); testObject = new AssetSchemaImplementationQuery(parentAsset, null); assertTrue(testObject.getQueryTargetElement() == null); testTemplate = new AssetSchemaImplementationQuery(parentAsset, testBean, null); testObject = new AssetSchemaImplementationQuery(parentAsset, testTemplate); assertTrue(testObject.getQueryTargetElement() == null); }
public AssetSchemaAttribute getQueryTargetElement() { if (queryTargetElement == null) { return null; } else { return new AssetSchemaAttribute(super.getParentAsset(), queryTargetElement); } }
AssetSchemaImplementationQuery extends AssetPropertyBase { public AssetSchemaAttribute getQueryTargetElement() { if (queryTargetElement == null) { return null; } else { return new AssetSchemaAttribute(super.getParentAsset(), queryTargetElement); } } }
AssetSchemaImplementationQuery extends AssetPropertyBase { public AssetSchemaAttribute getQueryTargetElement() { if (queryTargetElement == null) { return null; } else { return new AssetSchemaAttribute(super.getParentAsset(), queryTargetElement); } } AssetSchemaImplementationQuery(SchemaImplementationQuery  schemaImplementationQueryBean,
                                          AssetSchemaAttribute       queryTargetElement);  AssetSchemaImplementationQuery(AssetDescriptor            parentAsset,
                                          SchemaImplementationQuery  schemaImplementationQueryBean,
                                          AssetSchemaAttribute       queryTargetElement);  AssetSchemaImplementationQuery(AssetDescriptor                parentAsset,
                                          AssetSchemaImplementationQuery template); }
AssetSchemaImplementationQuery extends AssetPropertyBase { public AssetSchemaAttribute getQueryTargetElement() { if (queryTargetElement == null) { return null; } else { return new AssetSchemaAttribute(super.getParentAsset(), queryTargetElement); } } AssetSchemaImplementationQuery(SchemaImplementationQuery  schemaImplementationQueryBean,
                                          AssetSchemaAttribute       queryTargetElement);  AssetSchemaImplementationQuery(AssetDescriptor            parentAsset,
                                          SchemaImplementationQuery  schemaImplementationQueryBean,
                                          AssetSchemaAttribute       queryTargetElement);  AssetSchemaImplementationQuery(AssetDescriptor                parentAsset,
                                          AssetSchemaImplementationQuery template); String getQueryId(); String getQuery(); String getQueryType(); AssetSchemaAttribute getQueryTargetElement(); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
AssetSchemaImplementationQuery extends AssetPropertyBase { public AssetSchemaAttribute getQueryTargetElement() { if (queryTargetElement == null) { return null; } else { return new AssetSchemaAttribute(super.getParentAsset(), queryTargetElement); } } AssetSchemaImplementationQuery(SchemaImplementationQuery  schemaImplementationQueryBean,
                                          AssetSchemaAttribute       queryTargetElement);  AssetSchemaImplementationQuery(AssetDescriptor            parentAsset,
                                          SchemaImplementationQuery  schemaImplementationQueryBean,
                                          AssetSchemaAttribute       queryTargetElement);  AssetSchemaImplementationQuery(AssetDescriptor                parentAsset,
                                          AssetSchemaImplementationQuery template); String getQueryId(); String getQuery(); String getQueryType(); AssetSchemaAttribute getQueryTargetElement(); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }