groovy.xml
Class Namespace

java.lang.Object
  extended bygroovy.lang.GroovyObjectSupport
      extended bygroovy.util.BuilderSupport
          extended bygroovy.xml.Namespace
All Implemented Interfaces:
GroovyObject

public class Namespace
extends BuilderSupport

A helper class for creating namespaced GroovyMarkup

Version:
$Revision: 1.1 $
Author:
James Strachan

Constructor Summary
Namespace(BuilderSupport builder, java.lang.String uri)
           
Namespace(BuilderSupport builder, java.lang.String uri, java.lang.String prefix)
           
 
Method Summary
protected  java.lang.Object createNode(java.lang.Object name)
           
protected  java.lang.Object createNode(java.lang.Object name, java.util.Map attributes)
           
protected  java.lang.Object createNode(java.lang.Object name, java.lang.Object value)
           
protected  java.lang.Object getName(java.lang.String methodName)
          A hook to allow names to be converted into some other object such as a QName in XML or ObjectName in JMX
protected  void setParent(java.lang.Object parent, java.lang.Object child)
           
 
Methods inherited from class groovy.util.BuilderSupport
doInvokeMethod, getCurrent, invokeMethod, nodeCompleted
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, getProperty, setMetaClass, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Namespace

public Namespace(BuilderSupport builder,
                 java.lang.String uri)

Namespace

public Namespace(BuilderSupport builder,
                 java.lang.String uri,
                 java.lang.String prefix)
Method Detail

setParent

protected void setParent(java.lang.Object parent,
                         java.lang.Object child)
Specified by:
setParent in class BuilderSupport

getName

protected java.lang.Object getName(java.lang.String methodName)
Description copied from class: BuilderSupport
A hook to allow names to be converted into some other object such as a QName in XML or ObjectName in JMX

Overrides:
getName in class BuilderSupport
Parameters:
methodName -
Returns:

createNode

protected java.lang.Object createNode(java.lang.Object name)
Specified by:
createNode in class BuilderSupport

createNode

protected java.lang.Object createNode(java.lang.Object name,
                                      java.lang.Object value)
Specified by:
createNode in class BuilderSupport

createNode

protected java.lang.Object createNode(java.lang.Object name,
                                      java.util.Map attributes)
Specified by:
createNode in class BuilderSupport


Copyright © 2003-2004 The Codehaus. All Rights Reserved.