| |
|
| java.lang.Object com.flexive.shared.XPathElement
XPathElement | public class XPathElement implements Serializable(Code) | | A single XPath element (alias and multiplicity)
author: Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
XPathElement | public XPathElement(String alias, int index, boolean indexDefined)(Code) | | Ctor
Parameters: alias - alias to use Parameters: index - multiplicity to apply Parameters: indexDefined - was the multiplicity explicitly defined? |
buildXPath | public static String buildXPath(boolean leadingSlash, String... elements)(Code) | | Build an XPath from the given elements
Parameters: leadingSlash - prepend a leading slash character? Parameters: elements - elements that build the XPath XPath |
getAlias | public String getAlias()(Code) | | Getter for the alias
alias |
getIndex | public int getIndex()(Code) | | Getter for the multiplicity
multiplicity |
getPK | public static FxPK getPK(String xPath)(Code) | | Extract the primary key stored in the given XPath. If no PK is contained
in the XPath, a FxRuntimeException is thrown.
Parameters: xPath - the xpath the primary key stored in the given XPath throws: com.flexive.shared.exceptions.FxRuntimeException - if the given xpath is invalid or contains no PK |
hashCode | public int hashCode()(Code) | | |
isIndexDefined | public boolean isIndexDefined()(Code) | | Was the multiplicity explicitly defined?
multiplicity explicitly defined |
isValidXPath | public static boolean isValidXPath(String XPath)(Code) | | Check if this XPath is valid
Parameters: XPath - valid or not |
setIndex | public void setIndex(int index)(Code) | | Setter for the multiplicity
Parameters: index - the multiplicity to apply |
stripType | public static String stripType(String XPath)(Code) | | Strip leading types from an XPath if present
Parameters: XPath - the XPath XPath without leading type |
toString | public String toString()(Code) | | get FQN of the alias
FQ alias |
toXPath | public static String toXPath(List<XPathElement> xpe)(Code) | | Get the XPath of an array of XPathElements with multiplicities
Parameters: xpe - list containing XPathElement XPath |
toXPathNoMult | public static String toXPathNoMult(List<XPathElement> xpe)(Code) | | Get the XPath of an array of XPathElements without multiplicities
Parameters: xpe - list containing XPathElement XPath |
|
|
|