drools-eclipse/org.guvnor.eclipse.webdav/src/interface/org/eclipse/webdav/dom/PropertyBehavior.java
public Enumeration getProperties() throws MalformedElementException {

        Element keepalive = getFirstChild(root, "keepalive"); //$NON-NLS-1$
        ensureNotNull(Policy.bind("ensure.missingKeealiveElmt"), keepalive); //$NON-NLS-1$
        ensure(!"*".equals(getFirstText(keepalive)), //$NON-NLS-1$
                Policy.bind("ensure.wrongForm")); //$NON-NLS-1$

        final Element firstHref = getFirstChild(keepalive, "href"); //$NON-NLS-1$
        ensureNotNull(Policy.bind("ensure.missingHrefElmt"), firstHref); //$NON-NLS-1$

        Enumeration e = new Enumeration() {
            Element currentHref = firstHref;

            public boolean hasMoreElements() {
                return currentHref != null;
            }

            public Object nextElement() {
                if (!hasMoreElements())
                    throw new NoSuchElementException();
                String href = getFirstText(currentHref);
                currentHref = getTwin(currentHref, true);
                return decodeHref(href);
            }
        };

        return e;
    }
public Enumeration getProperties() throws MalformedElementException {

        Element keepalive = getFirstChild(root, "keepalive"); //$NON-NLS-1$
        ensureNotNull(Policy.bind("ensure.missingKeealiveElmt"), keepalive); //$NON-NLS-1$
        ensure(!"*".equals(getFirstText(keepalive)), //$NON-NLS-1$
                Policy.bind("ensure.wrongForm")); //$NON-NLS-1$

        final Element firstHref = getFirstChild(keepalive, "href"); //$NON-NLS-1$
        ensureNotNull(Policy.bind("ensure.missingHrefElmt"), firstHref); //$NON-NLS-1$

        Enumeration e = new Enumeration() {
            Element currentHref = firstHref;

            public boolean hasMoreElements() {
                return currentHref != null;
            }

            public Object nextElement() {
                if (!hasMoreElements())
                    throw new NoSuchElementException();
                String href = getFirstText(currentHref);
                currentHref = getTwin(currentHref, true);
                return decodeHref(href);
            }
        };

        return e;
    }
public Enumeration getProperties ( ) throws MalformedElementException { Element keepalive = getFirstChild ( root , "keepalive" ) ; //$NON-NLS-1$ ensureNotNull ( Policy . bind ( "ensure.missingKeealiveElmt" ) , keepalive ) ; //$NON-NLS-1$ ensure ( ! "*" . equals ( getFirstText ( keepalive ) ) , //$NON-NLS-1$ Policy . bind ( "ensure.wrongForm" ) ) ; //$NON-NLS-1$ final Element firstHref = getFirstChild ( keepalive , "href" ) ; //$NON-NLS-1$ ensureNotNull ( Policy . bind ( "ensure.missingHrefElmt" ) , firstHref ) ; //$NON-NLS-1$ Enumeration e = new Enumeration ( ) { Element currentHref = firstHref ; public boolean hasMoreElements ( ) { return currentHref != null ; } public Object nextElement ( ) { if ( ! hasMoreElements ( ) ) throw new NoSuchElementException ( ) ; String href = getFirstText ( currentHref ) ; currentHref = getTwin ( currentHref , true ) ; return decodeHref ( href ) ; } } ; return e ; }
Returns an <code>Enumeration</code> over this propertybehavior's
property hrefs. The methods <code>isMerge()</code> and
<code>isKeepAllAlive</code> return false if this propertybehavior is
in the "keep some alive" form.

@return an <code>Enumeration</code> of <code>String</code>s
@throws MalformedElementException if there is reason to believe that
this editor's underlying element is not well formed, or this
propertybehavior is not in the "keep some alive" form
@see    #isKeepAllAlive()
@see    #isOmit()
Returns an <code > Enumeration< / code > over this propertybehavior s property hrefs . The methods <code > isMerge () < / code > and <code > isKeepAllAlive< / code > return false if this propertybehavior is in the keep some alive form .