public URL getNodeAsURL( OMElement context, XPath xpath, URL defaultValue ) throws XMLParsingException { URL value = defaultValue; String s = getNodeAsString( context, xpath, null ); if ( s != null ) { value = parseURL( s ); } return value; }
public int getNodeAsInt( OMElement context, XPath xpath, int defaultValue ) throws XMLParsingException { int value = defaultValue; String s = getNodeAsString( context, xpath, null ); if ( s != null ) { value = parseInt( s ); } return value; }
public Version getNodeAsVersion( OMElement context, XPath xpath, Version defaultValue ) throws XMLParsingException { Version value = defaultValue; String s = getNodeAsString( context, xpath, null ); if ( s != null ) { value = Version.parseVersion( s ); } return value; }
public float getNodeAsFloat( OMElement context, XPath xpath, float defaultValue ) throws XMLParsingException { float value = defaultValue; String s = getNodeAsString( context, xpath, null ); if ( s != null ) { value = parseFloat( s ); } return value; }
/** * @return the extId */ public String getExtId() { return adapter.getNodeAsString( adapter.getRootElement(), new XPath( "./rim:ExternalIdentifier/rim:Name/rim:LocalizedString/@value", ns ), null ); }
private static String retrieveLiteral( OMElement value ) { XMLAdapter adapter = new XMLAdapter(); XPath xpath = new XPath( "//" + FES_PREFIX + ":Literal", NS_CONTEXT ); return adapter.getNodeAsString( value, xpath, null ); }
/** * @return the name */ public String getROName() { return adapter.getNodeAsString( adapter.getRootElement(), new XPath( "./rim:Name/rim:LocalizedString/@value", ns ), null ); }
public String getSlotValue( String slotName ) { return adapter.getNodeAsString( adapter.getRootElement(), new XPath( "./rim:Slot[@name='" + slotName + "']/rim:ValueList/rim:Value[1]", ns ), null ); }
/** * @return the path */ public String getPath() { return adapter.getNodeAsString( adapter.getRootElement(), new XPath( "./@path", ns ), null ); }
/** * @return the classificationScheme */ public String getClassificationScheme() { return adapter.getNodeAsString( adapter.getRootElement(), new XPath( "@classificationScheme", ns ), null ); }
/** * @return the classificationNode */ public String getClassificationNode() { return adapter.getNodeAsString( adapter.getRootElement(), new XPath( "@classificationNode", ns ), null ); }
/** * @return the lid */ public String getLid() { return adapter.getNodeAsString( adapter.getRootElement(), new XPath( "./@lid", ns ), null ); }
/** * @return the versionInfo */ public String getVersionInfo() { return adapter.getNodeAsString( adapter.getRootElement(), new XPath( "./rim:versionInfo/@versionName", ns ), null ); }
/** * @return the objectType */ public String getObjectType() { return adapter.getNodeAsString( adapter.getRootElement(), new XPath( "./@objectType", ns ), null ); }
/** * @return the desc */ public String getDesc() { return adapter.getNodeAsString( adapter.getRootElement(), new XPath( "./rim:Description/rim:LocalizedString/@value", ns ), null ); }
/** * @return the home */ public String getHome() { return adapter.getNodeAsString( adapter.getRootElement(), new XPath( "./@home", ns ), null ); }
/** * @return the status */ public String getStatus() { return adapter.getNodeAsString( adapter.getRootElement(), new XPath( "./@status", ns ), null ); }
/** * @return the parent */ public String getParent() { return adapter.getNodeAsString( adapter.getRootElement(), new XPath( "./@parent", ns ), null ); }
/** * @return the code */ public String getCode() { return adapter.getNodeAsString( adapter.getRootElement(), new XPath( "./@code", ns ), null ); }
public ReturnableElement getElementSetName() { String reAsString = adapter.getNodeAsString( adapter.getRootElement(), new XPath( "./rim:QueryExpression/csw:Query/csw:ElementSetName", ns ), null ); ReturnableElement re = ReturnableElement.summary; try { re = ReturnableElement.valueOf( reAsString ); } catch ( Exception e ) { // } return re; }