當前位置: 首頁>>代碼示例>>Java>>正文


Java Metadata類代碼示例

本文整理匯總了Java中com.arjuna.databroker.metadata.Metadata的典型用法代碼示例。如果您正苦於以下問題:Java Metadata類的具體用法?Java Metadata怎麽用?Java Metadata使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Metadata類屬於com.arjuna.databroker.metadata包,在下文中一共展示了Metadata類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setupInventory

import com.arjuna.databroker.metadata.Metadata; //導入依賴的package包/類
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String test0001 = Utils.loadInputStream(MetaContentToViewTest.class.getResourceAsStream("Test0001.rdf"));

        ids.add("id1");
        contentMap.put("id1", test0001);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("id1").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.arjuna.com/test0001#Test01").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
開發者ID:RISBIC,項目名稱:DataBroker,代碼行數:28,代碼來源:ObjectMethodViewTest.java

示例2: obtainDescriptionMetadata

import com.arjuna.databroker.metadata.Metadata; //導入依賴的package包/類
@Test
public void obtainDescriptionMetadata()
{
    assertNotNull("Not expecting null RDF Metadata object", _metadata);

    MetadataSelector descriptionMetadataSelector = _metadata.description();
    assertNotNull("Not expecting null Description Metadata Selector object", descriptionMetadataSelector);

    Metadata descriptionMetadata = descriptionMetadataSelector.getMetadata();
    assertNotNull("Not expecting null Description Metadata object", descriptionMetadata);
}
 
開發者ID:RISBIC,項目名稱:DataBroker,代碼行數:12,代碼來源:DescriptionSearchTest.java

示例3: setupInventory

import com.arjuna.databroker.metadata.Metadata; //導入依賴的package包/類
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String testList0002 = Utils.loadInputStream(MetaContentToViewListViewTest.class.getResourceAsStream("TestList0002.rdf"));

        ids.add("id1");
        contentMap.put("id1", testList0002);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("id1").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.arjuna.com/testlist0002#TestList01").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
開發者ID:RISBIC,項目名稱:DataBroker,代碼行數:28,代碼來源:MetaContentToViewListViewTest.java

示例4: setupInventory

import com.arjuna.databroker.metadata.Metadata; //導入依賴的package包/類
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String testList0001 = Utils.loadInputStream(MetaContentToListViewTest.class.getResourceAsStream("TestList0001.rdf"));

        ids.add("id1");
        contentMap.put("id1", testList0001);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("id1").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.arjuna.com/testlist0001#TestList01").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
開發者ID:RISBIC,項目名稱:DataBroker,代碼行數:28,代碼來源:MetaContentToListViewTest.java

示例5: setupInventory

import com.arjuna.databroker.metadata.Metadata; //導入依賴的package包/類
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String testList0001 = Utils.loadInputStream(MetaContentToMutableListViewTest.class.getResourceAsStream("TestList0001.rdf"));

        ids.add("id1");
        contentMap.put("id1", testList0001);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("id1").getMetadata();

        _mutableMetadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.arjuna.com/testlist0001#TestList01").getMetadataContent().mutableClone(RDFMutableMetadataContent.class);
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
開發者ID:RISBIC,項目名稱:DataBroker,代碼行數:28,代碼來源:MetaContentToMutableListViewTest.java

示例6: setupInventory

import com.arjuna.databroker.metadata.Metadata; //導入依賴的package包/類
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String test0001 = Utils.loadInputStream(MetaContentToMutableViewTest.class.getResourceAsStream("Test0001.rdf"));

        ids.add("id1");
        contentMap.put("id1", test0001);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("id1").getMetadata();

        _mutableMetadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.arjuna.com/test0001#Test01").getMetadataContent().mutableClone(RDFMutableMetadataContent.class);
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
開發者ID:RISBIC,項目名稱:DataBroker,代碼行數:28,代碼來源:MetaContentToMutableViewTest.java

示例7: setupInventory

import com.arjuna.databroker.metadata.Metadata; //導入依賴的package包/類
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String testList0002 = Utils.loadInputStream(MetaContentToMutableViewListViewTest.class.getResourceAsStream("TestList0002.rdf"));

        ids.add("id1");
        contentMap.put("id1", testList0002);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("id1").getMetadata();

        _mutableMetadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.arjuna.com/testlist0002#TestList01").getMetadataContent().mutableClone(RDFMutableMetadataContent.class);
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
開發者ID:RISBIC,項目名稱:DataBroker,代碼行數:28,代碼來源:MetaContentToMutableViewListViewTest.java

示例8: setupInventory

import com.arjuna.databroker.metadata.Metadata; //導入依賴的package包/類
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String exampleDB01 = Utils.loadInputStream(DatabaseViewTest.class.getResourceAsStream("ExampleDB01.rdf"));

        ids.add("exampleDB01");
        contentMap.put("exampleDB01", exampleDB01);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("exampleDB01").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.example.org/PS_Test#databroker").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
開發者ID:arjuna-technologies,項目名稱:Metadata_Utilities,代碼行數:28,代碼來源:DatabaseViewTest.java

示例9: setupInventory

import com.arjuna.databroker.metadata.Metadata; //導入依賴的package包/類
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String exampleDB01 = Utils.loadInputStream(TableViewTest.class.getResourceAsStream("ExampleDB01.rdf"));

        ids.add("exampleDB01");
        contentMap.put("exampleDB01", exampleDB01);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("exampleDB01").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.example.org/PS_Test#databroker").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
開發者ID:arjuna-technologies,項目名稱:Metadata_Utilities,代碼行數:28,代碼來源:TableViewTest.java

示例10: setupInventory

import com.arjuna.databroker.metadata.Metadata; //導入依賴的package包/類
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String exampleDB01 = Utils.loadInputStream(FieldViewTest.class.getResourceAsStream("ExampleDB01.rdf"));

        ids.add("exampleDB01");
        contentMap.put("exampleDB01", exampleDB01);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("exampleDB01").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.example.org/PS_Test#databroker").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
開發者ID:arjuna-technologies,項目名稱:Metadata_Utilities,代碼行數:28,代碼來源:FieldViewTest.java

示例11: setupInventory

import com.arjuna.databroker.metadata.Metadata; //導入依賴的package包/類
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String exampleCSV01 = Utils.loadInputStream(ColumnViewTest.class.getResourceAsStream("ExampleCSV01.rdf"));

        ids.add("exampleCSV01");
        contentMap.put("exampleCSV01", exampleCSV01);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("exampleCSV01").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.example.org/CSV_Test#2fbcd7b8-f2d7-4894-b1c4-e2a5e70e9bfa").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
開發者ID:arjuna-technologies,項目名稱:Metadata_Utilities,代碼行數:28,代碼來源:TableViewTest.java

示例12: setupInventory

import com.arjuna.databroker.metadata.Metadata; //導入依賴的package包/類
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String exampleCVS01 = Utils.loadInputStream(ColumnViewTest.class.getResourceAsStream("ExampleCSV01.rdf"));

        ids.add("exampleCVS01");
        contentMap.put("exampleCVS01", exampleCVS01);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("exampleCVS01").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.example.org/CSV_Test#2fbcd7b8-f2d7-4894-b1c4-e2a5e70e9bfa").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
開發者ID:arjuna-technologies,項目名稱:Metadata_Utilities,代碼行數:28,代碼來源:ColumnViewTest.java

示例13: setupInventory

import com.arjuna.databroker.metadata.Metadata; //導入依賴的package包/類
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String exampleXSSF01 = Utils.loadInputStream(ColumnViewTest.class.getResourceAsStream("ExampleXSSF01.rdf"));

        ids.add("exampleXSSF01");
        contentMap.put("exampleXSSF01", exampleXSSF01);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("exampleXSSF01").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.example.org/XSSF_Test#TimeSheet").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
開發者ID:arjuna-technologies,項目名稱:Metadata_Utilities,代碼行數:28,代碼來源:SheetViewTest.java

示例14: setupInventory

import com.arjuna.databroker.metadata.Metadata; //導入依賴的package包/類
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String exampleXSSF01 = Utils.loadInputStream(WorkbookViewTest.class.getResourceAsStream("ExampleXSSF01.rdf"));

        ids.add("exampleXSSF01");
        contentMap.put("exampleXSSF01", exampleXSSF01);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("exampleXSSF01").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.example.org/XSSF_Test#TimeSheet").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
開發者ID:arjuna-technologies,項目名稱:Metadata_Utilities,代碼行數:28,代碼來源:WorkbookViewTest.java

示例15: setupInventory

import com.arjuna.databroker.metadata.Metadata; //導入依賴的package包/類
@BeforeClass
public static void setupInventory()
{
    try
    {
        List<String>              ids              = new LinkedList<String>();
        Map<String, String>       contentMap       = new HashMap<String, String>();
        Map<String, String>       descriptionIdMap = new HashMap<String, String>();
        Map<String, String>       parentIdMap      = new HashMap<String, String>();
        Map<String, List<String>> childrenIdsMap   = new HashMap<String, List<String>>();

        String exampleJSON01 = Utils.loadInputStream(FieldViewTest.class.getResourceAsStream("ExampleJSON01.rdf"));

        ids.add("exampleJSON01");
        contentMap.put("exampleJSON01", exampleJSON01);

        DummyMetadataContentStore dummyMetadataContentStore = new DummyMetadataContentStore(ids, contentMap, descriptionIdMap, parentIdMap, childrenIdsMap);
        MetadataInventory         metadataInventory         = new StoreMetadataInventory(dummyMetadataContentStore);
        Metadata                  metadata                  = metadataInventory.metadata("exampleJSON01").getMetadata();

        _metadataContent = metadata.contents().selector(RDFMetadataContentsSelector.class).withPath("http://rdf.example.org/JSON_Test#2fbcd7b8-f2d7-4894-b1c4-e2a5e70e9bfa").getMetadataContent();
    }
    catch (Throwable throwable)
    {
        fail("Failed to populate Metadata Inventory");
    }
}
 
開發者ID:arjuna-technologies,項目名稱:Metadata_Utilities,代碼行數:28,代碼來源:ArrayViewTest.java


注:本文中的com.arjuna.databroker.metadata.Metadata類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。