Package org.apache.myfaces.trinidadinternal.share.expl

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


   */
  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

  {
    _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

  {
    _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

    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

   */
  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

    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

   */
  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

  {
    _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

TOP

Related Classes of org.apache.myfaces.trinidadinternal.share.expl.PrefixMapper

Copyright © 2018 www.massapicom. 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.