Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify archetype.childNodePathBase method #4

Open
ppazos opened this issue Aug 30, 2013 · 0 comments
Open

Simplify archetype.childNodePathBase method #4

ppazos opened this issue Aug 30, 2013 · 0 comments

Comments

@ppazos
Copy link
Contributor

ppazos commented Aug 30, 2013

In Archetype there are two methods to handle paths. Looking at each one, it seems childNodePathBase could return just path().

public String parentNodePath() {

    // remove both "/"  and attribute name
    return path().substring(0, path().length() - rmAttributeName.length() - 1);
}

public String childNodePathBase() {
    return parentNodePath() + PATH_SEPARATOR + rmAttributeName;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant