public class Path
extends java.lang.Object
There are three formats:
//page-id/comp-id/comp-id
/comp-id/comp-id
comp-id/comp-id
Alternatively, you could use Component.query(java.lang.String)
or Component.queryAll(java.lang.String)
instead.
Constructor and Description |
---|
Path() |
Path(Component comp)
Returns the path of the specified component.
|
Path(Path parent,
java.lang.String child) |
Path(java.lang.String path) |
Path(java.lang.String parent,
java.lang.String child) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
Component |
getComponent()
Returns the component with this path, or null if no such component.
|
static Component |
getComponent(IdSpace is,
java.lang.String path)
Returns the component of the specified path which is related
to the specified ID space, or null if no such component.
|
static Component |
getComponent(java.lang.String path)
Returns the component of the specified path, or null if no such component.
|
java.lang.String |
getPath()
Returns the path (after normalized).
|
static java.lang.String |
getPath(Component comp)
Returns the path of the specified component.
|
int |
hashCode() |
java.lang.String |
toString() |
public Path()
public Path(java.lang.String path)
public Path(java.lang.String parent, java.lang.String child)
public Path(Path parent, java.lang.String child)
public Path(Component comp)
public java.lang.String getPath()
public static final java.lang.String getPath(Component comp)
public Component getComponent()
public static final Component getComponent(java.lang.String path)
public static final Component getComponent(IdSpace is, java.lang.String path)
is
- the current ID space. It is required only if path is related
(in other words, not starting with / or //).public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005-2023 Potix Corporation. All Rights Reserved.