int () { final DPattern child = myElementPattern.getChild(); if (child instanceof DEmptyPattern) { return CONTENT_TYPE_EMPTY; } else if (child instanceof DTextPattern) { return CONTENT_TYPE_MIXED; } else if (child instanceof DElementPattern) { return ((DElementPattern)child).getName().accept(MyNameClassVisitor.INSTANCE); } else { return CONTENT_TYPE_CHILDREN; } }