amwebarsentitlementservice.container
Class ContainerTypeID
java.lang.Object
|
+--amwebarsentitlementservice.container.ContainerTypeID
- public class ContainerTypeID
- extends java.lang.Object
Constructor Summary |
ContainerTypeID(java.lang.String container_type_id)
Constructor for ContainerTypeID. |
ContainerTypeID(java.lang.String container_name,
java.lang.String namespace)
Constructor for ContainerTypeID. |
Method Summary |
static java.lang.String |
combineNameAndNamespace(java.lang.String container_name,
java.lang.String namespace)
Generates the container_type_id String as combination of container_name
and namespace. |
static boolean |
containsNamespace(java.lang.String container_type_id)
Tests if the container_type_id does contain a namespace. |
boolean |
equals(java.lang.Object other_object)
Tests whether this ContainerTypeID is equal to another. |
static java.lang.String |
extendByNamespace(java.lang.String container_type_id)
Extends the container_type_id by the NO_NAMESPACE identifier, if it
doesn't contain a namespace. |
java.lang.String |
getContainer_name()
Gets the container_name. |
java.lang.String |
getContainerTypeID()
Gets the container_type_id. |
java.lang.String |
getNamespace()
Gets the namespace. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NO_NAMESPACE
public static final java.lang.String NO_NAMESPACE
NAMESPACE_DELIMETER
public static final java.lang.String NAMESPACE_DELIMETER
ContainerTypeID
public ContainerTypeID(java.lang.String container_type_id)
- Constructor for ContainerTypeID.
ContainerTypeID
public ContainerTypeID(java.lang.String container_name,
java.lang.String namespace)
- Constructor for ContainerTypeID.
getContainer_name
public java.lang.String getContainer_name()
- Gets the container_name.
- Returns:
- Returns a String
getNamespace
public java.lang.String getNamespace()
- Gets the namespace.
- Returns:
- Returns a String
getContainerTypeID
public java.lang.String getContainerTypeID()
- Gets the container_type_id.
- Returns:
- Returns a String
equals
public boolean equals(java.lang.Object other_object)
- Tests whether this ContainerTypeID is equal to another.
- Overrides:
equals
in class java.lang.Object
- Returns:
- boolean true if both obj are the same.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
combineNameAndNamespace
public static java.lang.String combineNameAndNamespace(java.lang.String container_name,
java.lang.String namespace)
- Generates the container_type_id String as combination of container_name
and namespace.
- Parameters:
container_name
- String container_namenamespace
- String namespace- Returns:
- container_type_id
extendByNamespace
public static java.lang.String extendByNamespace(java.lang.String container_type_id)
- Extends the container_type_id by the NO_NAMESPACE identifier, if it
doesn't contain a namespace.
- Parameters:
container_type_id
- - Returns:
- container_type_id, possibly extended by NO_NAMESPACE
containsNamespace
public static boolean containsNamespace(java.lang.String container_type_id)
- Tests if the container_type_id does contain a namespace.
- Parameters:
container_type_id
- - Returns:
- true, if the container type includes a namespace.