Examples of PrefixMapper


Examples of org.apache.myfaces.trinidadinternal.share.expl.PrefixMapper

    if (bc!=null)
      _bindingContext = bc;
    else
    {

      final PrefixMapper mapper = new PrefixMapper()
        {
          public String getNamespaceURI(String prefix)
          {
            // this is backwards: we are calling a deprecated method here;
            // however, we need to do this to maintain backwards compatibility:
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.share.expl.PrefixMapper

   */
  public static NamespaceURI create(ExpressionContext context,
                                    String qname,
                                    String defaultURI)
  {
    PrefixMapper pmapper = context.getPrefixMapper();

    String uri;
    String name;
    // jmw test
    // af|breadCrumbs::separator-icon fails, because it thinks that
    // af|breadCrumbs is the prefix.
    // distinguish between single quotes and double quotes for now.

    // jmw test
    // shuttleRemoveAllIcon:alias fails. Ignore anything before :alias
    int doubleColonIndex = qname.indexOf("::");
    int colonIndex = qname.indexOf(':');
    boolean isAlias = (qname.indexOf(":alias") > -1);
    if (colonIndex > 0 && (colonIndex != doubleColonIndex) && !isAlias)
    {
      String prefix = qname.substring(0, colonIndex);

      uri = pmapper.getNamespaceURI(prefix);

      if (uri == null)
        throw new IllegalArgumentException("Undeclared prefix: " + prefix);

      name = qname.substring(colonIndex + 1);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.share.expl.PrefixMapper

  {
    _base = base;
    _manager = manager;
    _provider = provider;

    final PrefixMapper pmapper = new PrefixMapper()
      {
        public String getNamespaceURI(String prefix)
        {
          return getParserManager().resolveNamespaceAlias
            (_namespaces.getURI(prefix));
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.share.expl.PrefixMapper

  {
    _base = base;
    _manager = manager;
    _provider = provider;

    final PrefixMapper pmapper = new PrefixMapper()
      {
        public String getNamespaceURI(String prefix)
        {
          return getParserManager().resolveNamespaceAlias
            (_namespaces.getURI(prefix));
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.share.expl.PrefixMapper

    if (bc!=null)
      _bindingContext = bc;
    else
    {

      final PrefixMapper mapper = new PrefixMapper()
        {
          public String getNamespaceURI(String prefix)
          {
            // this is backwards: we are calling a deprecated method here;
            // however, we need to do this to maintain backwards compatibility:
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.share.expl.PrefixMapper

   */
  public static NamespaceURI create(ExpressionContext context,
                                    String qname,
                                    String defaultURI)
  {
    PrefixMapper pmapper = context.getPrefixMapper();

    String uri;
    String name;
    // jmw test
    // af|breadCrumbs::separator-icon fails, because it thinks that
    // af|breadCrumbs is the prefix.
    // distinguish between single quotes and double quotes for now.

    // jmw test
    // shuttleRemoveAllIcon:alias fails. Ignore anything before :alias
    int doubleColonIndex = qname.indexOf("::");
    int colonIndex = qname.indexOf(':');
    boolean isAlias = (qname.indexOf(":alias") > -1);
    if (colonIndex > 0 && (colonIndex != doubleColonIndex) && !isAlias)
    {
      String prefix = qname.substring(0, colonIndex);

      uri = pmapper.getNamespaceURI(prefix);

      if (uri == null)
        throw new IllegalArgumentException(_LOG.getMessage(
          "UNDECLARED_PREFIX", prefix));

View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.share.expl.PrefixMapper

    if (bc!=null)
      _bindingContext = bc;
    else
    {

      final PrefixMapper mapper = new PrefixMapper()
        {
          public String getNamespaceURI(String prefix)
          {
            // this is backwards: we are calling a deprecated method here;
            // however, we need to do this to maintain backwards compatibility:
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.share.expl.PrefixMapper

   */
  public static NamespaceURI create(ExpressionContext context,
                                    String qname,
                                    String defaultURI)
  {
    PrefixMapper pmapper = context.getPrefixMapper();

    String uri;
    String name;
    // jmw test
    // af|breadCrumbs::separator-icon fails, because it thinks that
    // af|breadCrumbs is the prefix.
    // distinguish between single quotes and double quotes for now.

    // jmw test
    // shuttleRemoveAllIcon:alias fails. Ignore anything before :alias
    int doubleColonIndex = qname.indexOf("::");
    int colonIndex = qname.indexOf(':');
    boolean isAlias = (qname.indexOf(":alias") > -1);
    if (colonIndex > 0 && (colonIndex != doubleColonIndex) && !isAlias)
    {
      String prefix = qname.substring(0, colonIndex);

      uri = pmapper.getNamespaceURI(prefix);

      if (uri == null)
        throw new IllegalArgumentException(_LOG.getMessage(
          "UNDECLARED_PREFIX", prefix));

View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.share.expl.PrefixMapper

  {
    _base = base;
    _manager = manager;
    _provider = provider;

    final PrefixMapper pmapper = new PrefixMapper()
      {
        public String getNamespaceURI(String prefix)
        {
          return getParserManager().resolveNamespaceAlias
            (_namespaces.getURI(prefix));
View Full Code Here

Examples of org.graphity.processor.locator.PrefixMapper

  SPINModuleRegistry.get().init(); // needs to be called before any SPIN-related code
        ARQFactory.get().setUseCaches(false); // enabled caching leads to unexpected QueryBuilder behaviour
       
  // initialize locally cached ontology mapping
  LocationMapper mapper = new PrefixMapper("prefix-mapping.n3"); // check if file exists?
  LocationMapper.setGlobalLocationMapper(mapper);
  if (log.isDebugEnabled()) log.debug("LocationMapper.get(): {}", LocationMapper.get());

        DataManager manager = new DataManager(mapper, ARQ.getContext(), getServletContext(), getUriInfo());
        FileManager.setStdLocators(manager);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.