public NamespacePrefixResolver getNamespacePrefixResolver() { return services.getNamespaceService(); } });
/** * NamespacePrefixResolverProvider getter implementation */ public NamespacePrefixResolver getNamespacePrefixResolver() { return this.services.getNamespaceService(); } }
public NamespacePrefixResolver getNamespacePrefixResolver() { return services.getNamespaceService(); } });
public NamespacePrefixResolver getNamespacePrefixResolver() { return this.services.getNamespaceService(); } }
public NamespacePrefixResolver getNamespacePrefixResolver() { return this.services.getNamespaceService(); }
/** * Avoid injection issues: Look it up from the Service Registry as required */ private NamespaceService getNamespaceService() { return serviceRegistry.getNamespaceService(); }
public NamespacePrefixResolver getNamespacePrefixResolver() { return this.services.getNamespaceService(); } }
/** * NamespacePrefixResolverProvider getter implementation */ public NamespacePrefixResolver getNamespacePrefixResolver() { return this.services.getNamespaceService(); } }
/** * Given a long-form QName, this method uses the namespace service to create a * short-form QName string. * * @param longQName QName * @return the short form of the QName string, e.g. "cm:content" */ protected String getShortQName(QName longQName) { return longQName.toPrefixString(services.getNamespaceService()); }
protected AbstractMapBasedMetadataLoader(final ServiceRegistry serviceRegistry, final String multiValuedSeparator, final String fileExtension) { // PRECONDITIONS assert serviceRegistry != null : "serviceRegistry must not be null"; assert multiValuedSeparator != null : "multiValuedSeparator must not be null"; // Body this.namespaceService = serviceRegistry.getNamespaceService(); this.dictionaryService = serviceRegistry.getDictionaryService(); this.multiValuedSeparator = multiValuedSeparator; this.metadataFileExtension = fileExtension; }
/** * Given a long-form QName, this method uses the namespace service to create a * short-form QName string. * * @param longQName QName * @return the short form of the QName string, e.g. "cm:content" */ protected String getShortQName(QName longQName) { return longQName.toPrefixString(services.getNamespaceService()); }
/** * Given a long-form QName string, this method uses the namespace service to create a * short-form QName string. * * @param s Fully qualified QName string * @return the short form of the QName string, e.g. "cm:content" */ public String shortQName(String s) { return createQName(s).toPrefixString(services.getNamespaceService()); }
/** * @return Returns the type in short format. */ public String getTypeShort() { return this.getType().toPrefixString(this.services.getNamespaceService()); }
/** * @return Returns the type in short format. */ public String getTypeShort() { return this.getType().toPrefixString(this.services.getNamespaceService()); }
/** * Given a long-form QName string, this method uses the namespace service to create a * short-form QName string. * * @param s Fully qualified QName string * @return the short form of the QName string, e.g. "cm:content" */ public String shortQName(String s) { return createQName(s).toPrefixString(services.getNamespaceService()); }
/** * Returns the name of this rendition definition in prefix:localName format. * * @return the name which uniquely identifies this rendition definition. */ public String getRenditionName() { QName qname = getRenditionDefinition().getRenditionName(); return qname.toPrefixString(services.getNamespaceService()); }
/** * @return QName path to this node. This can be used for Lucene PATH: style queries */ public String getQnamePath() { return this.services.getNodeService().getPath(getNodeRef()).toPrefixString(this.services.getNamespaceService()); }
/** * @return QName path to this node. This can be used for Lucene PATH: style queries */ public String getQnamePath() { return this.services.getNodeService().getPath(getNodeRef()).toPrefixString(this.services.getNamespaceService()); }
/** * @return Returns the type of the parent */ public String getParentTypeShort() { if (this.parentType == null) { this.parentType = this.services.getDictionaryService().getType(getType()).getParentName(); } return parentType.toPrefixString(this.services.getNamespaceService()); }
/** * @return Returns the type of the parent */ public String getParentTypeShort() { if (this.parentType == null) { this.parentType = this.services.getDictionaryService().getType(getType()).getParentName(); } return parentType.toPrefixString(this.services.getNamespaceService()); }