mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
AR-1218
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5050 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -222,17 +222,31 @@ public class DocumentNavigator extends DefaultNavigator implements NamedAccessNa
|
||||
|
||||
public String getElementName(Object o)
|
||||
{
|
||||
return ISO9075.encode(((ChildAssociationRef) o).getQName().getLocalName());
|
||||
QName qName = ((ChildAssociationRef) o).getQName();
|
||||
if(qName == null)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
return ISO9075.encode(qName.getLocalName());
|
||||
}
|
||||
|
||||
public String getElementNamespaceUri(Object o)
|
||||
{
|
||||
return ((ChildAssociationRef) o).getQName().getNamespaceURI();
|
||||
QName qName = ((ChildAssociationRef) o).getQName();
|
||||
if(qName == null)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
return (qName.getNamespaceURI());
|
||||
}
|
||||
|
||||
public String getElementQName(Object o)
|
||||
{
|
||||
QName qName = ((ChildAssociationRef) o).getQName();
|
||||
if(qName == null)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
String escapedLocalName = ISO9075.encode(qName.getLocalName());
|
||||
if(escapedLocalName == qName.getLocalName())
|
||||
{
|
||||
|
Reference in New Issue
Block a user