public class ParseUtil extends Object
| Constructor and Description |
|---|
ParseUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Double |
extractDoubleAttribute(cz.cesnet.cloud.occi.core.Entity entity,
String name)
Extract the attribute named 'name' of type Double from the given Entity.
|
static String |
extractHostAndPort(String uri)
Extract the "protocol://host:port" part of the given URI.
|
static String |
extractPath(String uri)
Extract the path part of the given URI.
|
static String |
extractStringAttribute(cz.cesnet.cloud.occi.core.Entity entity,
String name) |
public static String extractStringAttribute(cz.cesnet.cloud.occi.core.Entity entity, String name)
public static Double extractDoubleAttribute(cz.cesnet.cloud.occi.core.Entity entity, String name)
entity - name - the name of the attribute to look forpublic static String extractHostAndPort(String uri)
uri - the uri to parse.Copyright © 2017. All Rights Reserved.