Search in sources :

Example 21 with UntypedItem

use of org.platformlayer.common.UntypedItem in project platformlayer by platformlayer.

the class ListItems method formatRaw.

@Override
public void formatRaw(Object o, PrintWriter writer) {
    Ansi ansi = new Ansi(writer);
    Iterable<UntypedItem> items = (Iterable<UntypedItem>) o;
    for (UntypedItem item : items) {
        UntypedItemFormatter.formatItem(item, ansi, false);
    }
    ansi.reset();
}
Also used : UntypedItem(org.platformlayer.common.UntypedItem) Ansi(com.fathomdb.cli.commands.Ansi)

Example 22 with UntypedItem

use of org.platformlayer.common.UntypedItem in project platformlayer by platformlayer.

the class FederatedPlatformLayerClient method getItemUntyped.

@Override
public UntypedItem getItemUntyped(PlatformLayerKey key, Format format) throws PlatformLayerClientException {
    MappedPlatformLayerKey mapped = mapToChild(key);
    UntypedItem item = mapped.child.client.getItemUntyped(key);
    return mapped.child.setHost(item);
}
Also used : UntypedItem(org.platformlayer.common.UntypedItem)

Aggregations

UntypedItem (org.platformlayer.common.UntypedItem)22 PlatformLayerKey (org.platformlayer.core.model.PlatformLayerKey)10 PlatformLayerClient (org.platformlayer.PlatformLayerClient)7 Ansi (com.fathomdb.cli.commands.Ansi)3 UntypedItemXml (org.platformlayer.UntypedItemXml)3 JaxbHelper (org.platformlayer.xml.JaxbHelper)3 CliException (com.fathomdb.cli.CliException)2 ClientAction (com.fathomdb.cli.output.ClientAction)2 InetAddress (java.net.InetAddress)2 EndpointInfo (org.platformlayer.core.model.EndpointInfo)2 Tag (org.platformlayer.core.model.Tag)2 Tags (org.platformlayer.core.model.Tags)2 NoCloseInputStream (com.fathomdb.io.NoCloseInputStream)1 File (java.io.File)1 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1 JSONArray (org.json.JSONArray)1 JSONObject (org.json.JSONObject)1 UntypedItemCollection (org.platformlayer.common.UntypedItemCollection)1 ItemBase (org.platformlayer.core.model.ItemBase)1