Package org.projectnessie.model
Class Namespace
java.lang.Object
org.projectnessie.model.Content
org.projectnessie.model.Namespace
-
Nested Class Summary
Nested classes/interfaces inherited from class org.projectnessie.model.Content
Content.Type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.projectnessie.model.ImmutableNamespace.Builderbuilder()static NamespacefromPathString(String encoded) Convert from path encoded string to normal string.intString[]getType()Returns theContent.Typevalue for this content object.booleanisEmpty()booleanisSameOrSubElementOf(Namespace parent) @NotNull @NotNull Stringname()static NamespaceBuilds aNamespaceinstance for the given elements.static NamespaceBuilds aNamespaceinstance for the given elements.static NamespaceBuilds aNamespaceinstance for the given elements and the given properties.static NamespaceBuilds aNamespaceinstance for the given elements and the given properties.static Namespaceof(ContentKey contentKey) Builds aNamespaceusing the elements of the given content key.static NamespaceBuilds aNamespaceinstance for the given elements split by the . (dot) character.Convert this namespace to a URL encoded path string.toString()abstract Namespace
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Namespace
public Namespace()
-
-
Method Details
-
builder
public static org.projectnessie.model.ImmutableNamespace.Builder builder() -
getType
Description copied from class:ContentReturns theContent.Typevalue for this content object.The name of the returned value should match the JSON type name used for serializing the content object.
-
name
-
isEmpty
@Redacted public boolean isEmpty() -
getElements
-
getElementsArray
-
getElementCount
@Redacted public int getElementCount() -
getParent
-
getParentOrEmpty
-
getProperties
-
withId
-
of
Builds aNamespaceusing the elements of the given content key.- Parameters:
contentKey- key with the elements for the namespace- Returns:
- new namespace
-
of
Builds aNamespaceinstance for the given elements. -
of
Builds aNamespaceinstance for the given elements and the given properties. -
of
Builds aNamespaceinstance for the given elements. -
of
Builds aNamespaceinstance for the given elements and the given properties. -
parse
Builds aNamespaceinstance for the given elements split by the . (dot) character. -
isSameOrSubElementOf
-
fromPathString
Convert from path encoded string to normal string.- Parameters:
encoded- Path encoded string- Returns:
- Actual key.
-
toPathString
Convert this namespace to a URL encoded path string.- Returns:
- String encoded for path use.
-
toString
-
toContentKey
-